mirror of
https://github.com/CPunch/Laika.git
synced 2024-11-21 20:40:05 +00:00
Resolved library dependencies
This commit is contained in:
parent
dfdcb04608
commit
35e85252ee
@ -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)
|
file(GLOB_RECURSE LIBHEADERS ${CMAKE_CURRENT_SOURCE_DIR}/include/**.h)
|
||||||
add_library(LaikaLib STATIC ${LIBSOURCE} ${LIBHEADERS})
|
add_library(LaikaLib STATIC ${LIBSOURCE} ${LIBHEADERS})
|
||||||
set_property(TARGET LaikaLib PROPERTY C_STANDARD 11)
|
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
|
# add the version definitions and the 'DEBUG' preprocessor definition if we're compiling as Debug
|
||||||
target_compile_definitions(LaikaLib PUBLIC "$<$<CONFIG:Debug>:DEBUG>")
|
target_compile_definitions(LaikaLib PUBLIC "$<$<CONFIG:Debug>:DEBUG>")
|
||||||
|
Loading…
Reference in New Issue
Block a user