-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathCMakeLists.txt
36 lines (29 loc) · 1 KB
/
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
32
33
34
35
36
cmake_minimum_required(VERSION 3.5)
project(scannet_uv_renderer)
add_compile_options(
"-Wall" "-Wpedantic" "-Wextra" "-fexceptions"
)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
find_package(GLM REQUIRED)
find_package(OpenGL REQUIRED)
find_package(OpenCV REQUIRED)
find_package(GLFW3 REQUIRED)
find_package(GLEW REQUIRED)
find_package(Assimp REQUIRED)
add_executable(${PROJECT_NAME} src/main.cpp
src/renderer/renderer.cpp
src/renderer/scannet_renderer.cpp)
# cnpy
add_subdirectory(include/cnpy)
target_include_directories(
${PROJECT_NAME} PRIVATE include
${GLM_INCLUDE_DIR}
${OPENGL_INCLUDE_DIR}
${OpenCV_INCLUDE_DIRS}
${GLFW_INCLUDE_DIRS}
${GLEW_INCLUDE_PATH}
${assimp_INCLUDE_DIRS}
include/cnpy)
set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD 17 CXX_STANDARD_REQUIRED YES)
target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS} ${OPENGL_LIBRARIES}
${GLFW_LIBRARIES} ${GLEW_LIBRARY} ${assimp_LIBRARIES} cnpy -lGLEW -lGLU)