diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-24 17:41:52 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-24 17:41:52 -0600 |
commit | a27251c64504953fe17ab797e978f2f4928806d0 (patch) | |
tree | 8951b14ec9e4066ede1b1d75524f60eb032136fb /tqt/CMakeLists.txt | |
parent | 64385ab9a4a3c84fd8b66a14889d1cb01d2c47a0 (diff) | |
download | kgtk-qt3-a27251c64504953fe17ab797e978f2f4928806d0.tar.gz kgtk-qt3-a27251c64504953fe17ab797e978f2f4928806d0.zip |
Cleanup
Diffstat (limited to 'tqt/CMakeLists.txt')
-rw-r--r-- | tqt/CMakeLists.txt | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/tqt/CMakeLists.txt b/tqt/CMakeLists.txt new file mode 100644 index 0000000..7dfc840 --- /dev/null +++ b/tqt/CMakeLists.txt @@ -0,0 +1,39 @@ +################################################# +# +# (C) 2011 Timothy Pearson +# kb9vqf (AT) pearsoncomputing.net +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/common + ${CMAKE_CURRENT_BINARY_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + +message("** INFORMATION: Qt3 LD_PRELOAD library will be built.") + +# set(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)" ) +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) + +ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/mangled.h + COMMAND ${CMAKE_SOURCE_DIR}/mangled.sh ${CMAKE_CXX_COMPILER} ${CMAKE_CURRENT_BINARY_DIR}/mangled.h) + +set(kqt3_SRCS kqt3.cpp mangled.h) +add_definitions(${QT_DEFINITIONS} -DQT_CLEAN_NAMESPACE -DQT_THREAD_SUPPORT) +add_library(kqt3 SHARED ${kqt3_SRCS}) +target_link_libraries(kqt3 ${TQT_LIBRARIES} -lc -ldl) +install(TARGETS kqt3 LIBRARY DESTINATION ${LIB_INSTALL_DIR}/kgtk) + +configure_file (kqt3-wrapper.cmake ${CMAKE_CURRENT_BINARY_DIR}/kqt3-wrapper @ONLY) +install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/kqt3-wrapper DESTINATION ${BIN_INSTALL_DIR})
\ No newline at end of file |