blob: f3f4710f0014c8f5af437f2d4b7fecef6e1e7478 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
add_library(daw_rendering
src/gl.c
src/rendering.c
src/window.c
src/platform_glfw.c
${GLAD_HEADER}
)
add_custom_command(
OUTPUT ${GLAD_HEADER}
COMMAND
glad
--api gl:core=4.6
--out-path ${CMAKE_BINARY_DIR}
--reproducible
c
--header-only
--mx
)
set_property(SOURCE src/window.c APPEND PROPERTY OBJECT_DEPENDS ${GLAD_HEADER})
set_property(SOURCE src/rendering.c APPEND PROPERTY OBJECT_DEPENDS ${GLAD_HEADER})
target_compile_options(daw_rendering PUBLIC ${BUILD_OPTS})
target_include_directories(daw_rendering PRIVATE
${DAW_INCLUDE_DIRS}
${GLFW_INCLUDE_DIR}
)
target_link_libraries(daw_rendering PRIVATE
OpenGL::GL
cglm
glfw
)
|