CMakeLists.txt 1.4 KB

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