diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..e992cf0 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,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) |