mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00

large-scale changes to the build system, nothing a user sees tho - it is all under the hood Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
42 lines
913 B
CMake
42 lines
913 B
CMake
project(kdewidgets)
|
|
|
|
if(ENABLE_TESTING)
|
|
add_subdirectory(tests)
|
|
endif()
|
|
|
|
add_subdirectory(pics)
|
|
|
|
include_directories(
|
|
${KDE4_KIO_INCLUDES}
|
|
${CMAKE_SOURCE_DIR}/kutils/kmediaplayer
|
|
# for the export header
|
|
${CMAKE_BINARY_DIR}/kutils/kmediaplayer
|
|
)
|
|
|
|
########### next target ###############
|
|
|
|
add_executable(makekdewidgets makekdewidgets.cpp)
|
|
|
|
target_link_libraries(makekdewidgets ${KDE4_KDECORE_LIBS})
|
|
|
|
install(
|
|
TARGETS makekdewidgets
|
|
EXPORT kdelibsToolsTargets
|
|
DESTINATION ${KDE4_BIN_INSTALL_DIR}
|
|
)
|
|
|
|
########### next target ###############
|
|
|
|
if(QT_QTUITOOLS_FOUND)
|
|
kde4_add_widget(kdewidgets_SRCS kde.widgets)
|
|
|
|
kde4_add_plugin(kdewidgets ${kdewidgets_SRCS})
|
|
|
|
target_link_libraries(kdewidgets ${KDE4_KIO_LIBS} ${KDE4_KMEDIAPLAYER_LIBS})
|
|
|
|
install(
|
|
TARGETS kdewidgets
|
|
DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}/plugins/designer
|
|
)
|
|
endif(QT_QTUITOOLS_FOUND)
|
|
|