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.

CMakeLists.txt 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. )
  17. link_directories(
  18. ${TQT_LIBRARY_DIRS}
  19. )
  20. message("** INFORMATION: Qt3 LD_PRELOAD library will be built.")
  21. # set(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)" )
  22. 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)
  23. ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/mangled.h
  24. COMMAND ${CMAKE_SOURCE_DIR}/mangled.sh ${CMAKE_CXX_COMPILER} ${CMAKE_CURRENT_BINARY_DIR}/mangled.h)
  25. set(kqt3_SRCS kqt3.cpp mangled.h)
  26. add_definitions(${QT_DEFINITIONS} -DQT_CLEAN_NAMESPACE -DQT_THREAD_SUPPORT)
  27. add_library(kqt3 SHARED ${kqt3_SRCS})
  28. target_link_libraries(kqt3 ${TQT_LIBRARIES} -lc -ldl)
  29. install(TARGETS kqt3 LIBRARY DESTINATION ${LIB_INSTALL_DIR}/kgtk)
  30. configure_file (kqt3-wrapper.cmake ${CMAKE_CURRENT_BINARY_DIR}/kqt3-wrapper @ONLY)
  31. install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/kqt3-wrapper DESTINATION ${BIN_INSTALL_DIR})