cmake_minimum_required(VERSION 2.6) file(TO_CMAKE_PATH "$ENV{IMAGINEPP_ROOT}/CMake" p) list(APPEND CMAKE_MODULE_PATH "${p}") #For old Imagine++ list(APPEND CMAKE_SYSTEM_FRAMEWORK_PATH /Library/Frameworks) #Mac, why not auto? find_package(Imagine REQUIRED) project(GraphCuts) add_executable(exampleGC exampleGC.cpp maxflow/graph.cpp) add_executable(stereoGC stereoGC.cpp maxflow/graph.cpp) ImagineUseModules(stereoGC Images)