kde-extraapps/kdeplasma-addons/libs/rtm/CMakeLists.txt
2015-09-02 02:13:50 +03:00

46 lines
1.2 KiB
CMake

project(librtm)
set( rtm_LIB_HEADERS
rtm_export.h
rtm.h
request.h
auth.h
task.h
session.h
list.h
note.h
xmlreaders.h
)
set( rtm_LIB_SRCS
session.cpp
task.cpp
list.cpp
request.cpp
auth.cpp
xmlreaders.cpp
)
add_library(rtm SHARED ${rtm_LIB_SRCS})
set_target_properties(rtm PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION})
target_link_libraries(rtm ${QT_QTCORE_LIBRARY}
${QT_QTNETWORK_LIBRARY}
${KDE4_KDECORE_LIBS}
${KDE4_SOLID_LIBS})
#### FOR 4.3 we are not including the library as a stable platform, hence no exporting of headers
install(TARGETS rtm ${INSTALL_TARGETS_DEFAULT_ARGS})
#install(TARGETS rtm EXPORT RtmExports ${INSTALL_TARGETS_DEFAULT_ARGS})
#install(EXPORT RtmExports DESTINATION ${DATA_INSTALL_DIR}/cmake/modules
# FILE RtmExportedLibraryTargets.cmake )
#install( FILES ${rtm_LIB_HEADERS}
# DESTINATION ${INCLUDE_INSTALL_DIR}/rtm
# COMPONENT Devel
#)
#install(FILES FindRTM.cmake DESTINATION ${DATA_INSTALL_DIR}/cmake/modules)
add_subdirectory(tests)