CMakeLists.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. project(librtm)
  2. #set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
  3. find_package(KDE4 REQUIRED)
  4. include (KDE4Defaults)
  5. add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
  6. include_directories (${KDE4_INCLUDES})
  7. set( rtm_LIB_HEADERS
  8. rtm_export.h
  9. rtm.h
  10. request.h
  11. auth.h
  12. task.h
  13. session.h
  14. list.h
  15. note.h
  16. xmlreaders.h
  17. )
  18. set( rtm_LIB_SRCS
  19. session.cpp
  20. task.cpp
  21. list.cpp
  22. request.cpp
  23. auth.cpp
  24. xmlreaders.cpp
  25. )
  26. kde4_add_library(rtm SHARED ${rtm_LIB_SRCS})
  27. set_target_properties(rtm PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION})
  28. target_link_libraries(rtm ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} ${QT_QTWEBKIT_LIBRARY})
  29. ### Export headers so that librtm can be used by other (external) applications.
  30. install(TARGETS rtm ${INSTALL_TARGETS_DEFAULT_ARGS})
  31. install(TARGETS rtm EXPORT RtmExports ${INSTALL_TARGETS_DEFAULT_ARGS})
  32. install(EXPORT RtmExports DESTINATION ${DATA_INSTALL_DIR}/cmake/modules
  33. FILE RtmExportedLibraryTargets.cmake )
  34. install( FILES ${rtm_LIB_HEADERS}
  35. DESTINATION ${INCLUDE_INSTALL_DIR}/rtm
  36. COMPONENT Devel
  37. )
  38. install(FILES FindRTM.cmake DESTINATION ${DATA_INSTALL_DIR}/cmake/modules)
  39. add_subdirectory(tests)