diff options
author | hnOsmium0001 <[email protected]> | 2022-04-06 20:52:51 -0700 |
---|---|---|
committer | hnOsmium0001 <[email protected]> | 2022-04-06 20:52:51 -0700 |
commit | 3fdc6eb4f2cbeffce9b250beec4d3a2d52a3f534 (patch) | |
tree | 05991741844aa2814b3ac71e2c843ebe07244845 /CMakeLists.txt | |
parent | ebd42760caaec8330a3c028f31adc7bc0b339d16 (diff) |
Work on moving infrastruture to this project
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f66e75..daa5bd1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,24 +1,36 @@ cmake_minimum_required(VERSION 3.13) project(ProjectBrussel LANGUAGES C CXX) -set(CMAKE_CXX_STANDARD 20) -set(CMAKE_CXX_STANDARD_REQUIRED ON) find_package(OpenGL REQUIRED) -add_subdirectory(3rdparty/glfw) add_subdirectory(3rdparty/glad) +add_subdirectory(3rdparty/glfw) +add_subdirectory(3rdparty/glm) add_subdirectory(3rdparty/imgui) +add_subdirectory(3rdparty/stb) add_executable(${PROJECT_NAME} - # add_executable requires at least one source file - source/main.cpp + # add_executable requires at least one source file + source/main.cpp ) add_subdirectory(source) +target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_20) +set_target_properties(${PROJECT_NAME} +PROPERTIES + CXX_STANDARD_REQUIRED ON + CXX_EXTENSIONS OFF + + UNITY_BUILD_MODE BATCH + UNITY_BUILD_UNIQUE_ID "${PROJECT_NAME}_UNITY_ID" +) + target_include_directories(${PROJECT_NAME} PRIVATE sources/) target_link_libraries(${PROJECT_NAME} PRIVATE - OpenGL::GL - glfw - glad - imgui + OpenGL::GL + glad + glfw + glm::glm + imgui + stb ) |