summaryrefslogtreecommitdiff
path: root/src/core/CMakeLists.txt
blob: 100506aaeeb845d81f8563ccdf835d0fe16cbd6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
add_library(daw_core
  src/cleanup.c
  src/dltools.c
  src/harness.c
  src/init.c
  src/logging.c
  src/loop.c
  src/memory.c
  src/state.c
  src/thread.c
  ${GLAD_HEADER}
  )

#set_property(SOURCE src/loop.c APPEND PROPERTY OBJECT_DEPENDS ${GLAD_HEADER})

target_compile_options(daw_core PUBLIC ${BUILD_OPTS})
target_include_directories(daw_core PRIVATE ${DAW_INCLUDE_DIRS})
target_link_libraries(daw_core PRIVATE cglm)

target_compile_definitions(daw_core PUBLIC
  $<$<BOOL:${DAW_BUILD_HOTRELOAD}>:DAW_BUILD_HOTRELOAD>
)