mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-23 18:32:51 +00:00
54 lines
1.2 KiB
CMake
54 lines
1.2 KiB
CMake
project(kpimutils)
|
|
|
|
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=5321)
|
|
add_definitions( -DQT_NO_CAST_FROM_ASCII )
|
|
add_definitions( -DQT_NO_CAST_TO_ASCII )
|
|
|
|
if(ENABLE_TESTING)
|
|
add_subdirectory(tests)
|
|
endif()
|
|
|
|
include_directories(
|
|
../kmime
|
|
${CMAKE_CURRENT_BINARY_DIR}/../kmime
|
|
)
|
|
|
|
set(kpimutils_LIB_SRCS
|
|
email.cpp
|
|
emailvalidator.cpp
|
|
linklocator.cpp
|
|
spellingfilter.cpp
|
|
kfileio.cpp
|
|
processes.cpp
|
|
progressindicatorwidget.cpp
|
|
progressindicatorlabel.cpp
|
|
networkaccesshelper_fake.cpp
|
|
)
|
|
|
|
add_library(kpimutils ${LIBRARY_TYPE} ${kpimutils_LIB_SRCS})
|
|
generate_export_header(kpimutils)
|
|
|
|
target_link_libraries(kpimutils ${KDE4_KDEUI_LIBS} ${KDE4_KEMOTICONS_LIBS} kmime)
|
|
|
|
set_target_properties(kpimutils PROPERTIES
|
|
VERSION ${GENERIC_LIB_VERSION}
|
|
SOVERSION ${GENERIC_LIB_SOVERSION}
|
|
)
|
|
|
|
install(TARGETS kpimutils EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
|
|
|
|
########### install files ###############
|
|
|
|
install(FILES
|
|
${CMAKE_CURRENT_BINARY_DIR}/kpimutils_export.h
|
|
email.h
|
|
emailvalidator.h
|
|
linklocator.h
|
|
spellingfilter.h
|
|
kfileio.h
|
|
supertrait.h
|
|
processes.h
|
|
networkaccesshelper.h
|
|
progressindicatorwidget.h
|
|
progressindicatorlabel.h
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/kpimutils COMPONENT Devel)
|