-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
43 lines (31 loc) · 1.17 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
cmake_minimum_required(VERSION 3.10)
# set the project name
project(Fuoco VERSION 1.0)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)
include_directories(libs/stb_image)
include_directories(libs/glm-0.9.9.8)
# GLFW
add_subdirectory(libs/glfw-3.3.4)
include_directories(libs/glfw-3.3.4/include)
list(APPEND EXTRA_LIBS glfw)
list(APPEND EXTRA_LIBS ${glfw_LIBRARIES})
# list(APPEND EXTRA_LIBS ${OPENGL_LIBRARY})
# assimp
add_subdirectory(libs/assimp-5.0.1)
include_directories(libs/assimp-5.0.1/include)
list(APPEND EXTRA_LIBS assimp)
# list(APPEND EXTRA_LIBS ${glfw_LIBRARIES})
# GLAD
include_directories(libs/glad/include)
configure_file(src/fuoco_config.h.in ${PROJECT_SOURCE_DIR}/src/fuoco_config.h)
# add the executable
add_executable(Fuoco src/main.cpp libs/glad/src/glad.c)
target_link_libraries(Fuoco PUBLIC ${EXTRA_LIBS})
target_include_directories(Fuoco PUBLIC
"${PROJECT_BINARY_DIR}"
)
file(COPY src/shaders/ DESTINATION shaders)
file(COPY src/assets/ DESTINATION assets)
install(TARGETS Fuoco DESTINATION bin)
install(FILES "${PROJECT_BINARY_DIR}/src/FuocoConfig.h" DESTINATION include)