westoshy
6/23/2015 - 1:45 AM

CMakeLists.txt

CMakeLists.txt

cmake_minimum_required(VERSION 2.8)

project(hoge)

# Find Packages
find_package(OpenCV REQUIRED)
find_package(VTK REQUIRED)
find_package(ITK REQUIRED)

# include
include (${VTK_USE_FILE)}
include (${ITK_USE_FILE})

# clang
set(CMAKE_CXX_COMPILER "clang++-3.5")

# c++11
add_definitions("-std=c++11")

# executable
add_executable(hoge hoge.cxx)
# add_executable(fuga fuga.cxx)

# link
target_link_libraries(hoge ${OpenCV_LIBS} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
# target_link_libraries(fuga ${OpenCV_LIBS} ${ITK_LIBRARIES} ${VTK_LIBRARIES})