| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 | PROJECT(CTKCore)# CMake modulesSET(CMAKE_MODULE_PATH ${CTKCore_SOURCE_DIR}/CMake ${CMAKE_MODULE_PATH})# CMake MacrosINCLUDE(CMake/ctkMacroBFDCheck.cmake)FIND_PACKAGE(Log4Qt)if (NOT Log4Qt_FOUND)  MESSAGE(FATAL_ERROR "error: Log4Qt package is required to build ${PROJECT_NAME}" )endif()## See CTK/CMake/ctkMacroBuildLib.cmake for details#SET(KIT_export_directive "CTK_CORE_EXPORT")# Additional directories to includeSET(KIT_include_directories  ${Log4Qt_INCLUDE_DIR}  )  # Source filesSET(KIT_SRCS  ctkAbstractFactory.h  ctkAbstractFactory.tpp  ctkAbstractObjectFactory.h  ctkAbstractObjectFactory.tpp  ctkAbstractPluginFactory.h  ctkAbstractPluginFactory.tpp  ctkAbstractQObjectFactory.h  ctkAbstractQObjectFactory.tpp  ctkAbstractLibraryFactory.h  ctkAbstractLibraryFactory.tpp  ctkCommandLineParser.cpp  ctkCommandLineParser.h  ctkDependencyGraph.cpp  ctkDependencyGraph.h  ctkLogger.cpp  ctkLogger.h  ctkHistogram.cpp  ctkHistogram.h  ctkModelTester.cpp  ctkModelTester.h  ctkPimpl.h  ctkSingleton.h  ctkTransferFunction.cpp  ctkTransferFunction.h  ctkTransferFunctionRepresentation.cpp  ctkTransferFunctionRepresentation.h  ctkUtils.cpp  ctkUtils.h  )IF(CTK_HAVE_BFD)  LIST(APPEND KIT_SRCS    ctkBinaryFileDescriptor.cpp    ctkBinaryFileDescriptor.h    )ENDIF()# Headers that should run through mocSET(KIT_MOC_SRCS  ctkLogger.h   ctkHistogram.h  ctkModelTester.h  ctkTransferFunction.h  ctkTransferFunctionRepresentation.h  )# UI filesSET(KIT_UI_FORMS)# ResourcesSET(KIT_resources)# Target libraries - See CMake/ctkMacroGetTargetLibraries.cmake# The following macro will read the target libraries from the file 'target_libraries.cmake'ctkMacroGetTargetLibraries(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}  )# TestingIF(BUILD_TESTING)  ADD_SUBDIRECTORY(Testing)ENDIF(BUILD_TESTING)
 |