-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
37 lines (31 loc) · 986 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
35
36
37
cmake_minimum_required(VERSION 3.5)
project(mesh_thumbnailer)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
set(MSVC_RUNTIME "dynamic")
option(LIBIGL_OPENGL "Use OpenGL" ON)
option(LIBIGL_GLFW "Use GLFW" ON)
option(LIBIGL_PNG "Use PNG" ON)
include(libigl)
add_library(mesh_thumbnailer STATIC
mesh_thumbnailer.cpp
)
target_link_libraries(mesh_thumbnailer
igl::core igl::glfw igl::png
)
target_include_directories(mesh_thumbnailer
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
)
add_executable(mesh_thumbnailer_bin
programs/mesh_thumbnailer_bin.cpp
)
target_link_libraries(mesh_thumbnailer_bin
mesh_thumbnailer
)
set_target_properties(mesh_thumbnailer_bin
PROPERTIES OUTPUT_NAME "mesh_thumbnailer"
)
target_include_directories(mesh_thumbnailer_bin
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include
)
install(TARGETS mesh_thumbnailer_bin)