1
0
mirror of https://github.com/CPunch/Laika.git synced 2024-12-27 05:10:06 +00:00

Resolved library dependencies

This commit is contained in:
CPunch 2022-03-14 12:21:29 -05:00
parent dfdcb04608
commit 35e85252ee

View File

@ -32,7 +32,7 @@ file(GLOB_RECURSE LIBSOURCE ${CMAKE_CURRENT_SOURCE_DIR}/src/**.c ${CMAKE_CURRENT
file(GLOB_RECURSE LIBHEADERS ${CMAKE_CURRENT_SOURCE_DIR}/include/**.h)
add_library(LaikaLib STATIC ${LIBSOURCE} ${LIBHEADERS})
set_property(TARGET LaikaLib PROPERTY C_STANDARD 11)
target_link_libraries(LaikaLib PRIVATE sodium)
target_link_libraries(LaikaLib PUBLIC sodium)
# add the version definitions and the 'DEBUG' preprocessor definition if we're compiling as Debug
target_compile_definitions(LaikaLib PUBLIC "$<$<CONFIG:Debug>:DEBUG>")