kgtk-qt3 – TDE dialogs in GTK 2.x applications
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.4KB

  1. #################################################
  2. #
  3. # (C) 2011 Timothy Pearson
  4. # kb9vqf (AT) pearsoncomputing.net
  5. #
  6. # Improvements and feedback are welcome
  7. #
  8. # This file is released under GPL >= 2
  9. #
  10. #################################################
  11. include_directories(
  12. ${TQT_INCLUDE_DIRS}
  13. ${CMAKE_BINARY_DIR}
  14. ${CMAKE_SOURCE_DIR}
  15. ${CMAKE_SOURCE_DIR}/common
  16. ${CMAKE_CURRENT_BINARY_DIR}
  17. )
  18. link_directories(
  19. ${TQT_LIBRARY_DIRS}
  20. )
  21. message("** INFORMATION: Qt3 LD_PRELOAD library will be built.")
  22. # set(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)" )
  23. set(LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}" CACHE PATH "The subdirectory relative to the install prefix where libraries will be installed (default is /lib${LIB_SUFFIX})" FORCE)
  24. ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/mangled.h
  25. COMMAND ${CMAKE_SOURCE_DIR}/mangled.sh ${CMAKE_CXX_COMPILER} ${CMAKE_CURRENT_BINARY_DIR}/mangled.h)
  26. set(kqt3_SRCS kqt3.cpp mangled.h)
  27. add_definitions(${QT_DEFINITIONS} -DQT_CLEAN_NAMESPACE -DQT_THREAD_SUPPORT)
  28. add_library(kqt3 SHARED ${kqt3_SRCS})
  29. target_link_libraries(kqt3 ${TQT_LIBRARIES} -lc -ldl)
  30. install(TARGETS kqt3 LIBRARY DESTINATION ${LIB_INSTALL_DIR}/kgtk)
  31. configure_file (kqt3-wrapper.cmake ${CMAKE_CURRENT_BINARY_DIR}/kqt3-wrapper @ONLY)
  32. install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/kqt3-wrapper DESTINATION ${BIN_INSTALL_DIR})