This commit is contained in:
Ellen Arvidsson 2025-06-25 21:18:33 +02:00
parent 2d0661a8cd
commit 9669d4bba5

View file

@ -13,22 +13,17 @@ set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
include(CheckSymbolExists)
set(INCLUDE_DIR include) set(INCLUDE_DIR include)
set(SRC_DIR src) set(SRC_DIR src)
set(SPHO_HEADER_DIR ${INCLUDE_DIR}/spho)
set(SPHO_HEADER set(SPHO_HEADER
${SPHO_HEADER_DIR}/bind.h ${INCLUDE_DIR}/spho/bind.h
${SPHO_HEADER_DIR}/ctx.h ${INCLUDE_DIR}/spho/ctx.h
${SPHO_HEADER_DIR}/err.h ${INCLUDE_DIR}/spho/err.h
${SPHO_HEADER_DIR}/scope.h ${INCLUDE_DIR}/spho/scope.h
${SPHO_HEADER_DIR}/spho.h ${INCLUDE_DIR}/spho/spho.h
${SPHO_HEADER_DIR}/subt.h ${INCLUDE_DIR}/spho/subt.h
${SPHO_HEADER_DIR}/tp.h ${INCLUDE_DIR}/spho/tp.h
) )
set(SPHO_SRC set(SPHO_SRC
@ -39,8 +34,6 @@ set(SPHO_SRC
${SRC_DIR}/spho/tp.c ${SRC_DIR}/spho/tp.c
) )
check_symbol_exists(strlcpy "string.h" HAVE_STRLCPY)
add_library(spho STATIC ${SPHO_HEADER} ${SPHO_SRC}) add_library(spho STATIC ${SPHO_HEADER} ${SPHO_SRC})
target_include_directories(spho PRIVATE ${INCLUDE_DIR}) target_include_directories(spho PRIVATE ${INCLUDE_DIR})
target_compile_definitions(spho PRIVATE target_compile_definitions(spho PRIVATE