-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
34 lines (28 loc) · 852 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
32
33
34
cmake_minimum_required(VERSION 3.6)
# Name the project
project(CCGHomework)
if(NOT MSVC)
set(CMAKE_CXX_FLAGS "-fpermissive -std=c++11")
endif(NOT MSVC)
# Find MeshLib
find_package(MeshLib REQUIRED HINTS "${CMAKE_SOURCE_DIR}/3rdparty")
if (NOT MeshLib_FOUND)
message(FATAL_ERROR "MeshLib Not Found!")
endif (NOT MeshLib_FOUND)
# Find OpenGL and GLUT
if(MSVC)
find_package(freeglut REQUIRED HINTS "${CMAKE_SOURCE_DIR}/3rdparty")
if (NOT freeglut_FOUND)
message(FATAL_ERROR "freeglut Not Found!")
endif (NOT freeglut_FOUND)
else(MSVC)
find_package(OpenGL REQUIRED)
find_package(GLUT REQUIRED)
endif(MSVC)
# Find Eigen Numeric Lib
find_package(Eigen REQUIRED HINTS "${CMAKE_SOURCE_DIR}/3rdparty")
if (NOT Eigen_FOUND)
message(FATAL_ERROR "Eigen Not Found!")
endif (NOT Eigen_FOUND)
# Add module
add_subdirectory("hyperbolic")