diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-10-05 18:12:45 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-10-05 18:12:45 +0000 |
commit | b23b8edce7cbd48165084dbd852875afeb800735 (patch) | |
tree | 6fce139d187944d762e804b4e868e8a40284a121 /style/CMakeLists.txt | |
parent | 70f7d26b3b2a811ad0000cc3a26e21142d34e39f (diff) | |
download | tde-style-qtcurve-b23b8edce7cbd48165084dbd852875afeb800735.tar.gz tde-style-qtcurve-b23b8edce7cbd48165084dbd852875afeb800735.zip |
Update qtcurve to latest upstream version
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kde-style-qtcurve@1182805 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'style/CMakeLists.txt')
-rw-r--r-- | style/CMakeLists.txt | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/style/CMakeLists.txt b/style/CMakeLists.txt index 030487b..0b5a404 100644 --- a/style/CMakeLists.txt +++ b/style/CMakeLists.txt @@ -1,10 +1,22 @@ -set(qtcurve_SRCS qtcurve.cpp pixmaps.h) -add_definitions(-DQT_PLUGIN) -include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/common) -link_directories(${KDE3_LIB_DIR}) -kde3_automoc(${qtcurve_SRCS}) -add_library(qtcurve SHARED ${qtcurve_SRCS}) -set_target_properties(qtcurve PROPERTIES PREFIX "") -target_link_libraries(qtcurve ${QT_QTGUI_LIBRARY} kdefx) -install(TARGETS qtcurve LIBRARY DESTINATION ${KDE3_LIB_DIR}/kde3/plugins/styles) -install(FILES qtcurve.themerc DESTINATION ${KDE3PREFIX}/share/apps/kstyle/themes) +if (NOT QTC_QT_ONLY) + set(qtcurve_SRCS qtcurve.cpp pixmaps.h) + add_definitions(-DQT_PLUGIN) + include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/common) + link_directories(${KDE3_LIB_DIR}) + kde3_automoc(${qtcurve_SRCS}) + add_library(qtcurve MODULE ${qtcurve_SRCS}) + set_target_properties(qtcurve PROPERTIES PREFIX "") + target_link_libraries(qtcurve ${QT_LIBRARIES} kdefx) + install(TARGETS qtcurve LIBRARY DESTINATION ${KDE3_LIB_DIR}/kde3/plugins/styles) + install(FILES qtcurve.themerc DESTINATION ${KDE3PREFIX}/share/apps/kstyle/themes) +else (NOT QTC_QT_ONLY) + set(qtcurve_MOC_CLASSES qtcurve.h qtc_kstyle.h) + QTCURVE_QT_WRAP_CPP(qtcurve_MOC_SRCS ${qtcurve_MOC_CLASSES}) + set(qtcurve_SRCS qtcurve.cpp qtc_kstyle.cpp pixmaps.h) + include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_BINARY_DIR} ${QT_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/common) + add_library(qtcurve MODULE ${qtcurve_SRCS} ${qtcurve_MOC_SRCS}) + set_target_properties(qtcurve PROPERTIES PREFIX "") + target_link_libraries(qtcurve ${QT_LIBRARIES}) + install(TARGETS qtcurve LIBRARY DESTINATION ${QT_PLUGINS_DIR}/styles) +endif (NOT QTC_QT_ONLY) + |