-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
73 lines (57 loc) · 1.63 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
cmake_minimum_required(VERSION 3.14)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_COMPILER /usr/bin/clang++)
project(visualization)
add_subdirectory(library/glfw)
set(TINYGLTF_HEADER_ONLY ON CACHE INTERNAL "" FORCE)
set(TINYGLTF_INSTALL OFF CACHE INTERNAL "" FORCE)
set(TINYGLTF_BUIILD_LOADER_EXAMPLE "" OFF)
add_subdirectory(library/tinygltf)
include_directories(include)
# SET(IMGUI_HEADERS
# library/imgui/imgui.h
# library/imgui/imconfig.h
# library/imgui/imgui_impl_glfw.h
# library/imgui/imgui_impl_opengl3.h
# library/imgui/imgui_impl_opengl3_loaders.h
# library/imgui/imgui_internal.h
# library/imgui/imstb_rectpack.h
# library/imgui/imstb_textedit.h
# library/imgui/imstb_truetype.h)
include_directories(library/imgui)
file(GLOB IMGUI_SOURCES
library/imgui/*.cpp)
source_group("Header Files" FILES ${IMGUI_HEADERS})
add_executable(visualization
src/main.cpp
src/glad.c
src/tinygltf.cc
src/core/shader.hpp
src/core/mesh.hpp
src/core/files.hpp
src/core/grid.hpp
src/core/models.hpp
src/core/models.cpp
src/core/transform.hpp
src/core/transform.cpp
src/core/window.hpp
src/core/input.hpp
src/core/ui.hpp
src/core/renderer.hpp
src/core/scene.hpp
src/app/scene.hpp
src/app/demoscene.hpp
src/app/ikscene.hpp
src/app/enhanced.hpp
src/animation/bone.hpp
src/animation/bone.cpp
src/animation/bone_mesh.hpp
src/animation/cube_mesh.hpp
src/animation/bvhimporter.hpp
src/animation/bvhimporter.cpp
src/animation/loader.hpp
src/animation/retargeter.hpp
src/ui/mapper.hpp
${IMGUI_SOURCES})
target_link_libraries(visualization glfw ${GLFW_LIBRARIES}
tinygltf ${TINYGLTF_LIBRARIES})