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