Raycaster/CMakeLists.txt

13 lines
542 B
CMake
Raw Normal View History

2024-09-01 17:09:23 -06:00
cmake_minimum_required(VERSION 3.10)
2024-09-01 18:53:07 -06:00
add_subdirectory("deps/glfw")
2024-09-01 17:57:51 -06:00
project(Raycaster VERSION 0.1)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)
2024-09-01 19:42:42 -06:00
add_executable(raycaster src/main.cpp deps/glad/src/glad.c)
2024-09-01 17:57:51 -06:00
configure_file(src/RaycasterConfig.h.in RaycasterConfig.h)
2024-09-01 18:53:07 -06:00
target_include_directories(raycaster PUBLIC
"${PROJECT_BINARY_DIR}"
"deps/glfw/include"
2024-09-01 19:42:42 -06:00
"deps/glad/include"
2024-09-01 18:53:07 -06:00
)
target_link_libraries(raycaster glfw)