summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: e992cf0e4051d4069e3175d4360e291cd5178779 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Project(bundle-parser)

# macro to setup the projects
MACRO(QuickSetup)
cmake_minimum_required(VERSION 2.6)
find_package(OpenCV REQUIRED)
find_package(VTK REQUIRED)
if(NOT VTK_USE_RENDERING)
  message(FATAL_ERROR "${PROJECT_NAME} requires VTK_USE_RENDERING.")
endif(NOT VTK_USE_RENDERING)
include(${VTK_USE_FILE})
ENDMACRO(QuickSetup)

# macro to create a project
# you need to call QuickSetup first
MACRO(QuickExecutable proj_name)
add_executable(${proj_name} ${ARGN})
target_link_libraries(${proj_name}
    ${OpenCV_LIBS}
    vtkRendering
)
ENDMACRO(QuickExecutable)

QuickSetup()
QuickExecutable(ParseBundle parse_bundle.cpp)