diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2023-08-28 08:59:19 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2023-08-28 08:59:19 -0400 |
| commit | 86ece47fd62bbaaf76581828936946555211459b (patch) | |
| tree | 51fa6035bb31df8f184d2c17a01b6208e61f7c4d /CMakeLists.txt | |
| parent | 32b585f6e405d80a6f84336cdd239b1c2c966bbc (diff) | |
add glm
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9db3251..011126f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ -cmake_minimum_required(VERSION 3.21) +cmake_minimum_required(VERSION 3.27) cmake_policy(SET CMP0135 NEW) @@ -22,6 +22,7 @@ set(PKE_SOURCE_FILES src/dynamic-array.cpp src/asset-manager.hpp src/asset-manager.cpp + src/vendor/glm_include.hpp src/window.hpp src/window.cpp ) @@ -101,6 +102,13 @@ if (GLFW_FOUND) target_include_directories(pke PUBLIC ${GLFW_INCLUDE_DIR}) endif (GLFW_FOUND) +find_package(glm REQUIRED) +if (glm_FOUND) + message(STATUS "glm found: " ${glm_INCLUDE_DIR}) + target_link_libraries(pke PUBLIC ${glm_LIBRARIES}) + target_include_directories(pke PUBLIC ${glm_INCLUDE_DIR}) +endif (glm_FOUND) + target_include_directories(pke PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src") target_link_libraries(pke PUBLIC imguidocked) |
