12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- project(librtm)
- #set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
- find_package(KDE4 REQUIRED)
- include (KDE4Defaults)
- add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
- include_directories (${KDE4_INCLUDES})
- 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
- )
- kde4_add_library(rtm SHARED ${rtm_LIB_SRCS})
- set_target_properties(rtm PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION})
- target_link_libraries(rtm ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} ${QT_QTWEBKIT_LIBRARY})
- ### Export headers so that librtm can be used by other (external) applications.
- 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)
|