CMakeLists.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. project(CTKCommandLineModulesBackendLocalProcess)
  2. #
  3. # 3rd party dependencies
  4. #
  5. #
  6. # See CTK/CMake/ctkMacroBuildLib.cmake for details
  7. #
  8. set(KIT_export_directive "CTK_CMDLINEMODULEBACKENDLP_EXPORT")
  9. # Additional directories to include
  10. # Source files
  11. set(KIT_SRCS
  12. ctkCmdLineModuleBackendLocalProcess.cpp
  13. ctkCmdLineModuleProcessTask.cpp
  14. )
  15. # Headers that should run through moc
  16. set(KIT_MOC_SRCS
  17. ctkCmdLineModuleProcessTask.h
  18. )
  19. # UI files
  20. set(KIT_UI_FORMS
  21. )
  22. # Resources
  23. set(KIT_resources
  24. )
  25. # Target libraries - See CMake/ctkFunctionGetTargetLibraries.cmake
  26. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  27. ctkFunctionGetTargetLibraries(KIT_target_libraries)
  28. ctkMacroBuildLib(
  29. NAME ${PROJECT_NAME}
  30. EXPORT_DIRECTIVE ${KIT_export_directive}
  31. INCLUDE_DIRECTORIES ${KIT_include_directories}
  32. SRCS ${KIT_SRCS}
  33. MOC_SRCS ${KIT_MOC_SRCS}
  34. UI_FORMS ${KIT_UI_FORMS}
  35. TARGET_LIBRARIES ${KIT_target_libraries}
  36. RESOURCES ${KIT_resources}
  37. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  38. )
  39. target_link_libraries(${PROJECT_NAME} ${QT_LIBRARIES})
  40. if(CTK_WRAP_PYTHONQT_FULL OR CTK_WRAP_PYTHONQT_LIGHT)
  41. ctkMacroBuildLibWrapper(
  42. TARGET ${PROJECT_NAME}
  43. SRCS ${KIT_SRCS}
  44. WRAPPER_LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  45. )
  46. endif()
  47. # Testing
  48. if(BUILD_TESTING)
  49. #add_subdirectory(Testing)
  50. endif()