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