TDE core libraries
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #################################################
  2. #
  3. # (C) 2010 Serghei Amelian
  4. # serghei (DOT) amelian (AT) gmail.com
  5. #
  6. # Improvements and feedback are welcome
  7. #
  8. # This file is released under GPL >= 2
  9. #
  10. #################################################
  11. add_subdirectory( pics )
  12. add_definitions(
  13. -DQT_PLUGIN
  14. )
  15. include_directories(
  16. ${TQT_INCLUDE_DIRS}
  17. ${CMAKE_CURRENT_SOURCE_DIR}
  18. ${CMAKE_BINARY_DIR}/tdecore
  19. ${CMAKE_SOURCE_DIR}
  20. ${CMAKE_SOURCE_DIR}/tdecore
  21. ${CMAKE_SOURCE_DIR}/tdeui
  22. ${CMAKE_SOURCE_DIR}/tdeio
  23. ${CMAKE_SOURCE_DIR}/tdeio/tdefile
  24. )
  25. link_directories(
  26. ${TQT_LIBRARY_DIRS}
  27. )
  28. ##### makekdewidgets ############################
  29. set( target makekdewidgets )
  30. set( ${target}_SRCS
  31. makekdewidgets.cpp
  32. )
  33. tde_add_executable( ${target}
  34. SOURCES ${${target}_SRCS}
  35. LINK tdecore-shared
  36. DESTINATION ${BIN_INSTALL_DIR}
  37. )
  38. ##### kdewidgets ################################
  39. set( target kdewidgets )
  40. set( ${target}_SRCS
  41. classpreviews.cpp kdewidgets.cpp
  42. )
  43. add_custom_command( OUTPUT kdewidgets.cpp
  44. COMMAND ./makekdewidgets -o kdewidgets.cpp ${CMAKE_CURRENT_SOURCE_DIR}/kde.widgets
  45. DEPENDS makekdewidgets ${CMAKE_CURRENT_SOURCE_DIR}/kde.widgets
  46. )
  47. tde_add_kpart( ${target} AUTOMOC
  48. SOURCES ${${target}_SRCS}
  49. LINK tdeabc-shared
  50. DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/designer
  51. )