-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
32 lines (24 loc) · 1.01 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
cmake_minimum_required(VERSION 3.16)
set(PROJ_NAME "gl-engine")
set(EXECUTABLE "game")
message("Project name: ${PROJ_NAME}")
message("vcpkg root: ${VCPKG_ROOT}")
project(${PROJ_NAME} CXX)
find_path(STB_INCLUDE_DIRS "stb_image.h")
find_package(assimp CONFIG REQUIRED)
find_package(EnTT CONFIG REQUIRED)
find_package(glad CONFIG REQUIRED)
find_package(glfw3 CONFIG REQUIRED)
find_package(glm CONFIG REQUIRED)
find_package(imgui CONFIG REQUIRED)
message("buga buga buga")
#add_executable(${EXECUTABLE} test.cpp stb_include.cpp)
file(GLOB_RECURSE sources CONFIGURE_DEPENDS "src/*.cpp")
add_executable(${EXECUTABLE} ${sources})
target_include_directories(${EXECUTABLE} PUBLIC ${STB_INCLUDE_DIRS})
target_link_libraries(${EXECUTABLE} PRIVATE assimp::assimp)
target_link_libraries(${EXECUTABLE} PRIVATE EnTT::EnTT)
target_link_libraries(${EXECUTABLE} PRIVATE glad::glad)
target_link_libraries(${EXECUTABLE} PRIVATE glfw)
target_link_libraries(${EXECUTABLE} PRIVATE glm::glm)
target_link_libraries(${EXECUTABLE} PRIVATE imgui::imgui)