4 add_subdirectory( pics )
5 add_subdirectory( tests )
12 ########### next target ###############
14 set(makekdewidgets_SRCS makekdewidgets.cpp )
17 kde4_add_executable(makekdewidgets NOGUI RUN_UNINSTALLED ${makekdewidgets_SRCS})
19 target_link_libraries(makekdewidgets ${KDE4_KDECORE_LIBS} )
21 # "export" this target too so we can use the LOCATION property of the imported target in
22 # FindKDE4Internal.cmake to get the full path to the installed executable instead of using FIND_PROGRAM(), Alex
23 install(TARGETS makekdewidgets EXPORT kdelibsToolsTargets ${INSTALL_TARGETS_DEFAULT_ARGS} )
26 ########### next target ###############
29 # get the name of the generated wrapper script (which sets up LD_LIBRARY_PATH)
30 get_target_property(MAKEKDEWIDGETS_EXECUTABLE makekdewidgets WRAPPER_SCRIPT)
32 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/kdewidgets.cpp
33 COMMAND "${MAKEKDEWIDGETS_EXECUTABLE}" -o ${CMAKE_CURRENT_BINARY_DIR}/kdewidgets.cpp ${CMAKE_CURRENT_SOURCE_DIR}/kde.widgets
34 MAIN_DEPENDENCY kde.widgets DEPENDS makekdewidgets)
36 set(kdewidgets_PART_SRCS
38 ${CMAKE_CURRENT_BINARY_DIR}/kdewidgets.cpp
41 qt4_generate_moc(${CMAKE_CURRENT_BINARY_DIR}/kdewidgets.cpp ${CMAKE_CURRENT_BINARY_DIR}/kdewidgets.moc)
44 qt4_add_resources(kdewidgets_PART_SRCS kdewidgets.qrc)
46 kde4_add_plugin(kdewidgets ${kdewidgets_PART_SRCS})
48 target_link_libraries(kdewidgets ${KDE4_KIO_LIBS})
50 set_target_properties(kdewidgets PROPERTIES
51 INSTALL_RPATH_USE_LINK_PATH TRUE
53 BUILD_WITH_INSTALL_RPATH TRUE
54 INSTALL_RPATH ${LIB_INSTALL_DIR}
58 install(TARGETS kdewidgets DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/designer )
60 if (QT_QT3SUPPORT_FOUND)
63 ${CMAKE_SOURCE_DIR}/kde3support
64 ${CMAKE_SOURCE_DIR}/kde3support/kdeui
67 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/kde3supportwidgets.cpp
68 COMMAND "${MAKEKDEWIDGETS_EXECUTABLE}" -o ${CMAKE_CURRENT_BINARY_DIR}/kde3supportwidgets.cpp ${CMAKE_CURRENT_SOURCE_DIR}/kde3support.widgets
69 MAIN_DEPENDENCY kde3support.widgets DEPENDS makekdewidgets)
71 set(kde3supportwidgets_PART_SRCS
73 ${CMAKE_CURRENT_BINARY_DIR}/kde3supportwidgets.cpp
76 qt4_generate_moc(${CMAKE_CURRENT_BINARY_DIR}/kde3supportwidgets.cpp ${CMAKE_CURRENT_BINARY_DIR}/kde3supportwidgets.moc)
79 qt4_add_resources(kde3supportwidgets_PART_SRCS kde3supportwidgets.qrc)
81 kde4_add_plugin(kde3supportwidgets ${kde3supportwidgets_PART_SRCS})
83 target_link_libraries(kde3supportwidgets ${KDE4_KDE3SUPPORT_LIBS} ${KDE4_KIO_LIBS})
85 set_target_properties(kde3supportwidgets PROPERTIES
86 INSTALL_RPATH_USE_LINK_PATH TRUE
88 BUILD_WITH_INSTALL_RPATH TRUE
89 INSTALL_RPATH ${LIB_INSTALL_DIR}
93 install(TARGETS kde3supportwidgets DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/designer )
94 endif (QT_QT3SUPPORT_FOUND)
97 ########### install files ###############