stk-code_catmod/lib/graphics_engine/CMakeLists.txt

53 lines
1.5 KiB
CMake
Raw Normal View History

include_directories("${PROJECT_SOURCE_DIR}/lib/graphics_engine/include")
include_directories("${PROJECT_SOURCE_DIR}/lib/graphics_utils")
include_directories("${PROJECT_SOURCE_DIR}/lib/irrlicht/include")
2021-06-09 13:02:24 -04:00
find_path(SDL2_INCLUDEDIR NAMES SDL.h PATH_SUFFIXES SDL2 include/SDL2 include PATHS)
if (NOT SDL2_INCLUDEDIR)
message(FATAL_ERROR "SDL2 not found.")
else()
include_directories("${SDL2_INCLUDEDIR}")
endif()
if(APPLE AND NOT DLOPEN_MOLTENVK)
find_path(VULKAN_INCLUDEDIR NAMES vulkan/vulkan.h PATHS)
if (NOT VULKAN_INCLUDEDIR)
message(FATAL_ERROR "Vulkan not found.")
else()
include_directories("${VULKAN_INCLUDEDIR}")
endif()
endif()
2021-04-17 21:46:44 -04:00
if(UNIX OR MINGW)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x")
endif()
set(GE_SOURCES
src/gl.c
src/ge_main.cpp
src/ge_texture.cpp
2021-04-22 22:58:19 -04:00
src/ge_dx9_texture.cpp
2022-07-11 00:58:03 -04:00
src/ge_vma.cpp
2022-03-19 03:14:55 -04:00
src/ge_vulkan_2d_renderer.cpp
src/ge_vulkan_animated_mesh_scene_node.cpp
2022-06-16 00:00:15 -04:00
src/ge_vulkan_camera_scene_node.cpp
src/ge_vulkan_command_loader.cpp
2022-07-10 02:48:07 -04:00
src/ge_vulkan_depth_texture.cpp
2021-06-09 13:02:24 -04:00
src/ge_vulkan_driver.cpp
2022-03-19 03:14:55 -04:00
src/ge_vulkan_dynamic_buffer.cpp
src/ge_vulkan_features.cpp
2022-05-29 00:33:06 -04:00
src/ge_vulkan_mesh_cache.cpp
src/ge_vulkan_mesh_scene_node.cpp
2022-06-06 22:34:08 -04:00
src/ge_vulkan_scene_manager.cpp
2022-03-18 04:24:33 -04:00
src/ge_vulkan_shader_manager.cpp
2022-03-01 00:22:20 -05:00
src/ge_vulkan_texture.cpp
src/ge_vulkan_texture_descriptor.cpp
2021-04-17 00:44:25 -04:00
src/ge_gl_texture.cpp
2022-05-21 23:53:02 -04:00
src/ge_spm.cpp
)
if(NOT APPLE OR DLOPEN_MOLTENVK)
set(GE_SOURCES ${GE_SOURCES} src/vulkan.c)
endif()
add_library(graphics_engine STATIC ${GE_SOURCES})