CMakeLists.txt 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. INCLUDE_DIRECTORIES ${KIT_include_directories}
  36. SRCS ${KIT_SRCS}
  37. MOC_SRCS ${KIT_MOC_SRCS}
  38. UI_FORMS ${KIT_UI_FORMS}
  39. TARGET_LIBRARIES ${KIT_target_libraries}
  40. RESOURCES ${KIT_resources}
  41. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  42. )
  43. target_link_libraries(${PROJECT_NAME} ${QT_LIBRARIES})
  44. if(CTK_WRAP_PYTHONQT_FULL OR CTK_WRAP_PYTHONQT_LIGHT)
  45. ctkMacroBuildLibWrapper(
  46. TARGET ${PROJECT_NAME}
  47. SRCS ${KIT_SRCS}
  48. WRAPPER_LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  49. )
  50. endif()
  51. # Testing
  52. if(BUILD_TESTING)
  53. #add_subdirectory(Testing)
  54. endif()