kdelibs/kparts/CMakeLists.txt

62 lines
1,019 B
Text
Raw Normal View History

2014-11-13 01:04:59 +02:00
project(kparts)
add_definitions(
-DKDE_DEFAULT_DEBUG_AREA=1000
)
if(ENABLE_TESTING)
add_subdirectory(tests)
endif()
2014-11-13 01:04:59 +02:00
include_directories(${KDE4_KIO_INCLUDES} ${kparts_BINARY_DIR})
########### next target ###############
set(kparts_LIB_SRCS
part.cpp
mainwindow.cpp
event.cpp
factory.cpp
)
2014-11-13 01:04:59 +02:00
add_library(kparts SHARED ${kparts_LIB_SRCS})
2014-11-13 01:04:59 +02:00
target_link_libraries(kparts PUBLIC
kdecore
kdeui
kio
)
2014-11-13 01:04:59 +02:00
set_target_properties(kparts PROPERTIES
VERSION ${GENERIC_LIB_VERSION}
SOVERSION ${GENERIC_LIB_SOVERSION}
)
2014-11-13 01:04:59 +02:00
install(
TARGETS kparts
EXPORT kdelibsTargets
DESTINATION ${KDE4_LIB_INSTALL_DIR}
)
2014-11-13 01:04:59 +02:00
########### install files ###############
install(
FILES
kpart.desktop
krop.desktop
krwp.desktop
DESTINATION ${KDE4_SERVICETYPES_INSTALL_DIR}
)
generate_export_header(kparts)
install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/kparts_export.h
part.h
mainwindow.h
event.h
factory.h
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/kparts
)