PROJECT(TESTVOLMANAGER) FIND_PACKAGE(VTK) IF(NOT VTK_DIR) MESSAGE(FATAL_ERROR "Please set VTK_DIR.") ENDIF(NOT VTK_DIR) INCLUDE(${VTK_USE_FILE}) FIND_PACKAGE(ITK REQUIRED) IF (USE_ITK_FILE) INCLUDE (${USE_ITK_FILE}) ENDIF (USE_ITK_FILE) INCLUDE(${ITK_USE_FILE}) FIND_PACKAGE(IGSTKSandbox) IF(NOT IGSTKSandbox_DIR) MESSAGE(FATAL_ERROR "Please set IGSTKSandbox_DIR.") ENDIF(NOT IGSTKSandbox_DIR) INCLUDE(${IGSTKSandbox_USE_FILE}) INCLUDE_DIRECTORIES(volumemanager) ADD_EXECUTABLE(testVolManager MACOSX_BUNDLE main.cpp testvolumemanager.cpp volumemanager.cpp) TARGET_LINK_LIBRARIES (testVolManager IGSTKSandbox )