-
Notifications
You must be signed in to change notification settings - Fork 0
/
CmakeLists.txt
48 lines (32 loc) · 1.37 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
37
38
39
40
41
42
43
44
45
46
47
48
cmake_minimum_required(VERSION 3.15)
project(glab_toolkit)
cmake_policy(SET CMP0074 NEW)
list(PREPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
set(CMAKE_CXX_STANDARD 17)
add_compile_definitions("_CRT_SECURE_NO_WARNINGS")
add_compile_definitions("WIN32")
add_compile_definitions("_WINDOWS")
add_compile_definitions("IMGUI_IMPL_OPENGL_LOADER_GLAD")
# Libigl
option(LIBIGL_WITH_COMISO "Use CoMiso" ON)
option(LIBIGL_WITH_EMBREE "Use Embree" ON)
option(LIBIGL_WITH_OPENGL "Use OpenGL" ON)
option(LIBIGL_WITH_OPENGL_GLFW "Use GLFW" ON)
option(LIBIGL_WITH_OPENGL_GLFW_IMGUI "Use ImGui" ON)
option(LIBIGL_WITH_PNG "Use PNG" ON)
option(LIBIGL_WITH_TETGEN "Use Tetgen" ON)
option(LIBIGL_WITH_TRIANGLE "Use Triangle" ON)
option(LIBIGL_WITH_PREDICATES "Use exact predicates" ON)
option(LIBIGL_WITH_XML "Use XML" ON)
option(OPENMP "USE_OPENMP" OFF)
# library
include(libigl)
include(spdlog)
#include(zlib)
#set(ZLIB_ROOT ${zlib_SOURCE_DIR})
#include(cnpy)
include(ffmpeg)
#use multi byte compile
add_definitions(-D_MBCS)
# excutable
add_subdirectory(mesh_anim_viewer)