-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
35 lines (28 loc) · 973 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
cmake_minimum_required(VERSION 3.24)
project(mouse_picking)
add_executable(mouse_picking
main.cpp
AppWindow.cpp
)
target_compile_features(mouse_picking PRIVATE cxx_std_20)
target_include_directories(mouse_picking PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/extlibs)
find_package(fmt CONFIG REQUIRED)
find_package(range-v3 CONFIG REQUIRED)
find_package(imgui CONFIG REQUIRED)
find_package(imguizmo CONFIG REQUIRED)
include(FetchContent)
message(STATUS "Fetching OGLWrapper...")
FetchContent_Declare(
OGLWrapper
GIT_REPOSITORY https://github.com/stripe2933/OGLWrapper.git
GIT_TAG 1a5e1e1
)
FetchContent_MakeAvailable(OGLWrapper)
target_link_libraries(mouse_picking PRIVATE
OGLWrapper
imgui::imgui imguizmo::imguizmo
fmt::fmt range-v3::range-v3
)
# Copy shader and asset files to executable folder.
add_custom_target(copy_assets COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_LIST_DIR}/copy_assets.cmake)
add_dependencies(mouse_picking copy_assets)