2020-12-03 20:39:06 -05:00
|
|
|
include_directories("${PROJECT_SOURCE_DIR}/lib/graphics_engine/include")
|
2021-04-13 21:34:59 -04:00
|
|
|
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()
|
|
|
|
|
2021-04-17 21:46:44 -04:00
|
|
|
if(UNIX OR MINGW)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x")
|
|
|
|
endif()
|
2020-12-03 20:39:06 -05:00
|
|
|
add_library(graphics_engine STATIC
|
|
|
|
src/gl.c
|
|
|
|
src/vulkan.c
|
2021-04-13 21:34:59 -04:00
|
|
|
src/ge_main.cpp
|
|
|
|
src/ge_texture.cpp
|
2021-04-22 22:58:19 -04:00
|
|
|
src/ge_dx9_texture.cpp
|
2021-06-09 13:02:24 -04:00
|
|
|
src/ge_vulkan_driver.cpp
|
2021-04-17 00:44:25 -04:00
|
|
|
src/ge_gl_texture.cpp
|
2020-12-03 20:39:06 -05:00
|
|
|
)
|