1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-24 13:07:44 +00:00
novus/renderer/CMakeLists.txt
Joshua Goins 2eccb10eda Remove fmt dependency
It's no longer used, and replaced with physis functions where formatting
was needed.
2023-09-23 14:51:47 -04:00

27 lines
No EOL
820 B
CMake

# SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
# SPDX-License-Identifier: CC0-1.0
find_package(Vulkan REQUIRED)
FetchContent_Declare(
glm
GIT_REPOSITORY https://github.com/g-truc/glm.git
GIT_TAG 0.9.9.8
)
FetchContent_MakeAvailable(glm)
if(USE_STANDALONE_WINDOW)
find_package(SDL2 REQUIRED)
set(EXTRA_SRC src/standalonewindow.cpp)
set(EXTRA_LIBRARIES SDL2::SDL2)
endif()
add_library(renderer src/renderer.cpp ${EXTRA_SRC})
target_include_directories(renderer PUBLIC include)
target_link_libraries(renderer PUBLIC Qt5::Core Vulkan::Vulkan physis z ${EXTRA_LIBRARIES})
target_compile_definitions(renderer PUBLIC GLM_FORCE_RADIANS GLM_FORCE_DEPTH_ZERO_TO_ONE)
if(USE_STANDALONE_WINDOW)
target_compile_definitions(renderer PUBLIC USE_STANDALONE_WINDOW)
endif()