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}
|
|
|
|
)
|
|
|
|
|
2024-04-21 09:02:27 +00:00
|
|
|
set(HEADERS
|
|
|
|
dyna_gl.h
|
|
|
|
HardwareInternal.h
|
2024-07-20 21:19:31 +00:00
|
|
|
ShaderProgram.h
|
|
|
|
${SHADERS_H}
|
2024-05-07 22:22:05 +00:00
|
|
|
)
|
2024-04-20 12:35:20 +00:00
|
|
|
set(CPPS
|
2024-04-21 09:02:27 +00:00
|
|
|
HardwareClipper.cpp
|
|
|
|
HardwareDraw.cpp
|
|
|
|
HardwareGlobalVars.cpp
|
|
|
|
HardwareInstance.cpp
|
|
|
|
HardwareOpenGL.cpp
|
2024-05-08 16:36:43 +00:00
|
|
|
HardwareBaseGPU.cpp
|
2024-04-21 09:02:27 +00:00
|
|
|
HardwarePoints.cpp
|
|
|
|
HardwareSetup.cpp
|
|
|
|
HardwareTransforms.cpp
|
2024-06-21 16:46:53 +00:00
|
|
|
lnxscreenmode.cpp
|
2024-05-07 22:22:05 +00:00
|
|
|
)
|
2024-04-16 03:43:29 +00:00
|
|
|
|
2024-04-21 09:02:27 +00:00
|
|
|
add_library(renderer STATIC ${HEADERS} ${CPPS})
|
2024-07-20 21:19:31 +00:00
|
|
|
target_include_directories(renderer PRIVATE ${GENERATED_HEADERS})
|
2024-05-22 09:33:33 +00:00
|
|
|
target_link_libraries(renderer PRIVATE
|
2024-07-28 09:18:54 +00:00
|
|
|
glm::glm
|
2024-06-29 00:52:39 +00:00
|
|
|
SDL2::SDL2
|
2024-05-22 09:33:33 +00:00
|
|
|
bitmap
|
2024-09-23 00:16:07 +00:00
|
|
|
ddebug
|
2024-05-22 21:59:23 +00:00
|
|
|
ddio
|
2024-09-10 09:40:19 +00:00
|
|
|
logger
|
2024-06-19 21:31:58 +00:00
|
|
|
mem
|
2024-06-26 21:09:50 +00:00
|
|
|
misc
|
2024-09-15 20:24:07 +00:00
|
|
|
module
|
2024-07-28 01:45:50 +00:00
|
|
|
rtperformance
|
2024-05-22 09:33:33 +00:00
|
|
|
)
|