-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
21 lines (16 loc) · 917 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
cmake_minimum_required(VERSION 2.8)
SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb ")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")
PROJECT(ReadOBJ)
find_package(VTK REQUIRED)
find_package(OpenCV REQUIRED)
include(${VTK_USE_FILE})
add_executable(pose_render pose_render)
add_executable(semantic_render semantic_render)
if(VTK_LIBRARIES)
target_link_libraries(pose_render ${VTK_LIBRARIES} opencv_core opencv_imgproc opencv_highgui opencv_xfeatures2d opencv_imgcodecs)
target_link_libraries(semantic_render ${VTK_LIBRARIES} opencv_core opencv_imgproc opencv_highgui opencv_xfeatures2d opencv_imgcodecs)
else()
target_link_libraries(pose_render ${VTK_LIBRARIES} opencv_core opencv_imgproc opencv_highgui opencv_xfeatures2d opencv_imgcodecs)
target_link_libraries(semantic_render ${VTK_LIBRARIES} opencv_core opencv_imgproc opencv_highgui opencv_xfeatures2d opencv_imgcodecs)
endif()