-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
31 lines (22 loc) · 987 Bytes
/
CMakeLists.txt
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
26
27
28
29
30
31
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(nonrigid_sim)
#find_package(PCL 1.7 REQUIRED)
find_package(OpenCV QUIET)
if (NOT OpenCV_FOUND)
set(OpenCV_DIR /homeLocal2/guipotje/opencv34/install/share/OpenCV)
find_package(OpenCV REQUIRED)
endif()
set(CMAKE_BUILD_TYPE Release)
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
#set(CMAKE_BUILD_TYPE Debug)
find_package(Eigen3 REQUIRED)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-narrowing -std=c++11")
#include_directories(${PCL_INCLUDE_DIRS})
#link_directories(${PCL_LIBRARY_DIRS})
#add_definitions(${PCL_DEFINITIONS})
include_directories(${EIGEN3_INCLUDE_DIR})
#add_executable (nonrigid_sim cloth_nonrigid_sim.cpp)
#target_link_libraries (nonrigid_sim ${PCL_LIBRARIES} ${OpenCV_LIBS} -lglut -lGLU -lGL)
add_executable (nonrigid_sim_auto nonrigid_sim_auto.cpp)
#target_link_libraries (nonrigid_sim_auto ${PCL_LIBRARIES} ${OpenCV_LIBS} -lglut -lGLU -lGL)
target_link_libraries (nonrigid_sim_auto ${OpenCV_LIBS} -lglut -lGLU -lGL)