summaryrefslogtreecommitdiffstats
path: root/style/CMakeLists.txt
blob: 0b5a404fa1b06b3c53933cabdff809cb8171aeca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)