123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- project(CTKCommandLineModulesCore)
- #
- # 3rd party dependencies
- #
- #
- # See CTK/CMake/ctkMacroBuildLib.cmake for details
- #
- set(KIT_export_directive "CTK_CMDLINEMODULECORE_EXPORT")
- # Additional directories to include
- # Source files
- set(KIT_SRCS
- ctkCmdLineModuleBackend.cpp
- ctkCmdLineModuleCache.cpp
- ctkCmdLineModuleCache_p.h
- ctkCmdLineModuleDefaultPathBuilder.cpp
- ctkCmdLineModuleDescription.cpp
- ctkCmdLineModuleDescription_p.h
- ctkCmdLineModuleDirectoryWatcher.cpp
- ctkCmdLineModuleDirectoryWatcher_p.h
- ctkCmdLineModuleFrontend.cpp
- ctkCmdLineModuleFrontendFactory.cpp
- ctkCmdLineModuleFuture.h
- ctkCmdLineModuleFutureInterface.h
- ctkCmdLineModuleManager.cpp
- ctkCmdLineModuleParameter.cpp
- ctkCmdLineModuleParameterGroup.cpp
- ctkCmdLineModuleParameterGroup_p.h
- ctkCmdLineModuleParameterParsers_p.h
- ctkCmdLineModulePathBuilder.cpp
- ctkCmdLineModuleResult.h
- ctkCmdLineModuleXmlProgressWatcher.cpp
- ctkCmdLineModuleReference.cpp
- ctkCmdLineModuleRunException.cpp
- ctkCmdLineModuleXmlException.cpp
- ctkCmdLineModuleXmlMsgHandler_p.h
- ctkCmdLineModuleXmlMsgHandler.cpp
- ctkCmdLineModuleXmlParser_p.h
- ctkCmdLineModuleXmlParser.cpp
- ctkCmdLineModuleXmlValidator.cpp
- ctkCmdLineModuleXslTransform.cpp
- )
- # Headers that should run through moc
- set(KIT_MOC_SRCS
- ctkCmdLineModuleDirectoryWatcher.h
- ctkCmdLineModuleDirectoryWatcher_p.h
- ctkCmdLineModuleFrontend.h
- ctkCmdLineModuleManager.h
- )
- qt4_wrap_cpp(_dummy ctkCmdLineModuleXmlProgressWatcher.h)
- set_source_files_properties(ctkCmdLineModuleXmlProgressWatcher.cpp
- PROPERTIES OBJECT_DEPENDS ${_dummy})
- # UI files
- set(KIT_UI_FORMS
- )
- # Resources
- set(KIT_resources
- Resources/ctkCmdLineModules.qrc
- )
- set(QT_USE_QTXMLPATTERNS 1)
- include(${QT_USE_FILE})
- # Target libraries - See CMake/ctkFunctionGetTargetLibraries.cmake
- # The following macro will read the target libraries from the file 'target_libraries.cmake'
- ctkFunctionGetTargetLibraries(KIT_target_libraries)
- ctkMacroBuildLib(
- NAME ${PROJECT_NAME}
- EXPORT_DIRECTIVE ${KIT_export_directive}
- INCLUDE_DIRECTORIES ${KIT_include_directories}
- SRCS ${KIT_SRCS}
- MOC_SRCS ${KIT_MOC_SRCS}
- UI_FORMS ${KIT_UI_FORMS}
- TARGET_LIBRARIES ${KIT_target_libraries}
- RESOURCES ${KIT_resources}
- LIBRARY_TYPE ${CTK_LIBRARY_MODE}
- )
- target_link_libraries(${PROJECT_NAME} ${QT_LIBRARIES})
- if(CTK_WRAP_PYTHONQT_FULL OR CTK_WRAP_PYTHONQT_LIGHT)
- ctkMacroBuildLibWrapper(
- TARGET ${PROJECT_NAME}
- SRCS ${KIT_SRCS}
- WRAPPER_LIBRARY_TYPE ${CTK_LIBRARY_MODE}
- )
- endif()
- # Testing
- if(BUILD_TESTING)
- add_subdirectory(Testing)
- endif()
|