From a769169aa680004376d450501aa8a8c6a5b686ee Mon Sep 17 00:00:00 2001 From: Warwick Date: Wed, 29 Jan 2025 17:40:48 +0000 Subject: [PATCH] Moved over to cglm as we don't use C++ --- CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 32d6744..f774bd5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,18 +9,21 @@ project(new-engine set(CMAKE_C_STANDARD 17) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) +# Build Dependancies +find_package(PkgConfig REQUIRED) + # Dependancies find_package(Vulkan REQUIRED) find_package(glfw3 REQUIRED) set(GLFW_LIBRARIES glfw) -find_package(glm REQUIRED) +pkg_check_modules(CGLM REQUIRED cglm) #find_package(m REQUIRED) # Include dirs include_directories( ${Vulkan_INCLUDE_DIRS} ${GLFW_INCLUDE_DIRS} - ${GLM_INCLUDE_DIRS} + ${CGLM_INCLUDE_DIRS} ) # Executables @@ -45,7 +48,7 @@ endif() target_link_libraries(${PROJECT_NAME} ${GLFW_LIBRARIES} ${Vulkan_LIBRARIES} - ${GLM_LIBRARY_DIRS} + ${CGLM_LIBRARIES} ${CMAKE_DL_LIBS} #${M_LIBRARIES} m