-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
54 lines (50 loc) · 1.57 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
cmake_minimum_required(VERSION 3.15)
project(renderer
VERSION 0.1
DESCRIPTION "renderer library"
LANGUAGES CXX)
add_library(renderer STATIC)
target_sources(renderer
PRIVATE
"src/renderer.cpp"
"src/material.cpp"
"src/vertex-color-material.cpp"
"src/scene.cpp"
"src/mesh.cpp"
"src/transformation.cpp"
"src/camera.cpp"
"src/terrain.cpp"
"src/terrain-material.cpp"
"src/full-screen-quad.cpp"
"src/noise-terrain-material.cpp"
"src/gui.cpp"
"src/window.cpp"
"src/imgui_impl_glfw.cpp"
"src/imgui_impl_opengl3.cpp"
"src/terrain-node.cpp"
"src/noise-terrain-node.cpp"
"include/renderer.hpp"
"include/material.hpp"
"include/vertex-color-material.hpp"
"include/scene.hpp"
"include/mesh.hpp"
"include/transformation.hpp"
"include/camera.hpp"
"include/terrain.hpp"
"include/terrain-material.hpp"
"include/full-screen-quad.hpp"
"include/noise-terrain-material.hpp"
"include/gui.hpp"
"include/window.hpp"
"include/imgui_impl_glfw.h"
"include/imgui_impl_opengl3.h"
"include/gui-provider.hpp"
"include/terrain-node.hpp"
"include/noise-terrain-node.hpp"
"include/stb_image.h"
"include/stb_image_write.h")
target_include_directories(renderer
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
target_link_libraries(renderer ${CONAN_LIBS})
add_custom_command(TARGET renderer POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/resources/ ${CMAKE_BINARY_DIR}/bin/resources)