#Set the project PROJECT(ComposeRGBA) #Include some macros from another file... INCLUDE(${CMAKE_SOURCE_DIR}/IJMacros.txt) #Setup required paths SET(DATA_PATH ${CMAKE_SOURCE_DIR}/Data) SET(SOURCE_PATH ${CMAKE_SOURCE_DIR}/Source) SET(TESTING_PATH ${CMAKE_SOURCE_DIR}/Testing) SET(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/bin CACHE PATH "Single output directory for building all libraries." FORCE) SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/bin CACHE PATH "Single output directory for building all executables." FORCE) SET(TESTING_OUTPUT_PATH ${CMAKE_BINARY_DIR}/Testing/Temporary) #The following lines are required to use Dart ENABLE_TESTING() INCLUDE(Dart) FIND_PROGRAM(IMAGE_COMPARE ImageCompare) #Declare any external dependencies that your project may have here. #examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java #If you're not sure what name to use, look in the Modules directory of your #cmake install and check that a file named Find(Package).cmake exists SET(Required_Packages ITK ) #this foreach loads all of the packages that you specified as required. #It shouldn't need to be modified. FOREACH(Package ${Required_Packages}) LOADPACKAGE(${Package}) ENDFOREACH(Package) #Construct VXL/VNL includes SET(VXL_INCLUDE_DIRS ${ITK_SOURCE_DIR}/Utilities/vxl ${ITK_SOURCE_DIR}/Utilities/vxl/core ${ITK_SOURCE_DIR}/Utilities/vxl/core/vnl ${ITK_SOURCE_DIR}/Utilities/vxl/vcl) #Set any libraries that your project depends on. #examples: ITKCommon, VTKRendering, etc SET(VXL_NUMERICS_LIBRARIES itkvnl itkvnl_algo itknetlib) SET(ITK_LIBRARIES ITKIO ITKCommon ITKNumerics ITKBasicFilters ) #Add Source SUBDIRS(Source) #Add Testing OPTION(BUILD_TESTING "Build the Testing directory." ON) IF(BUILD_TESTING) SUBDIRS(Testing) ENDIF(BUILD_TESTING)