Descent3/renderer/CMakeLists.txt

47 lines
999 B
CMake
Raw Permalink Normal View History

2024-07-20 21:19:31 +00:00
cmake_path(SET GENERATED_HEADERS NORMALIZE ${CMAKE_CURRENT_BINARY_DIR}/generated)
cmake_path(SET SHADERS_H NORMALIZE ${GENERATED_HEADERS}/shaders.h)
set(SHADERS
shaders/fragment.glsl
shaders/vertex.glsl
)
add_custom_command(
OUTPUT ${SHADERS_H}
COMMAND ${CMAKE_COMMAND} -Dshaders_h=${SHADERS_H} -P ../cmake/shaders.cmake -- ${SHADERS}
DEPENDS ../cmake/shaders.cmake ${SHADERS}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
set(HEADERS
dyna_gl.h
HardwareInternal.h
2024-07-20 21:19:31 +00:00
ShaderProgram.h
${SHADERS_H}
)
set(CPPS
HardwareClipper.cpp
HardwareDraw.cpp
HardwareGlobalVars.cpp
HardwareInstance.cpp
HardwareOpenGL.cpp
HardwareBaseGPU.cpp
HardwarePoints.cpp
HardwareSetup.cpp
HardwareTransforms.cpp
2024-06-21 16:46:53 +00:00
lnxscreenmode.cpp
)
2024-04-16 03:43:29 +00:00
add_library(renderer STATIC ${HEADERS} ${CPPS})
2024-07-20 21:19:31 +00:00
target_include_directories(renderer PRIVATE ${GENERATED_HEADERS})
target_link_libraries(renderer PRIVATE
glm::glm
2024-06-29 00:52:39 +00:00
SDL2::SDL2
bitmap
2024-09-23 00:16:07 +00:00
ddebug
2024-05-22 21:59:23 +00:00
ddio
logger
mem
misc
2024-09-15 20:24:07 +00:00
module
rtperformance
)