mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-23 10:22:50 +00:00
68 lines
1.5 KiB
CMake
68 lines
1.5 KiB
CMake
project(kcalutils)
|
|
|
|
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=5820)
|
|
add_definitions(-DQT_NO_CAST_FROM_ASCII)
|
|
add_definitions(-DQT_NO_CAST_TO_ASCII)
|
|
|
|
include_directories(
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
${KDE4_INCLUDE_DIR}
|
|
${CMAKE_BINARY_DIR}/kcalcore
|
|
${CMAKE_BINARY_DIR}/kpimidentities
|
|
${CMAKE_BINARY_DIR}/kpimutils
|
|
)
|
|
|
|
########### next target ###############
|
|
|
|
set(kcalutils_LIB_SRCS
|
|
htmlexport.cpp
|
|
icaldrag.cpp
|
|
incidenceformatter.cpp
|
|
recurrenceactions.cpp
|
|
stringify.cpp
|
|
scheduler.cpp
|
|
vcaldrag.cpp
|
|
dndfactory.cpp
|
|
)
|
|
|
|
kde4_add_kcfg_files(kcalutils_LIB_SRCS htmlexportsettings.kcfgc)
|
|
|
|
add_library(kcalutils ${LIBRARY_TYPE} ${kcalutils_LIB_SRCS})
|
|
generate_export_header(kcalutils)
|
|
|
|
target_link_libraries(kcalutils
|
|
${KDE4_KDECORE_LIBS}
|
|
${KDE4_KDEUI_LIBS}
|
|
kcalcore
|
|
kpimidentities
|
|
kpimutils
|
|
${QT_QTGUI_LIBRARY}
|
|
)
|
|
set_target_properties(kcalutils PROPERTIES
|
|
VERSION ${GENERIC_LIB_VERSION}
|
|
SOVERSION ${GENERIC_LIB_SOVERSION}
|
|
)
|
|
|
|
install(TARGETS kcalutils EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
|
|
|
|
########### next target ###############
|
|
|
|
if(ENABLE_TESTING)
|
|
add_subdirectory(tests)
|
|
endif()
|
|
|
|
########### install files ###############
|
|
|
|
install(FILES
|
|
dndfactory.h
|
|
htmlexport.h
|
|
icaldrag.h
|
|
incidenceformatter.h
|
|
${CMAKE_CURRENT_BINARY_DIR}/kcalutils_export.h
|
|
vcaldrag.h
|
|
recurrenceactions.h
|
|
scheduler.h
|
|
stringify.h
|
|
${CMAKE_CURRENT_BINARY_DIR}/htmlexportsettings.h
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/kcalutils COMPONENT Devel)
|