KnowledgeCrawler/libs/library/CMakeLists.txt
2023-06-08 17:57:19 +01:00

15 lines
469 B
CMake

set(LIB_NAME "library")
add_library(${LIB_NAME} src/lib.cpp)
# We need this directory, and users of our library will need it too
target_include_directories(${LIB_NAME} PUBLIC ../../include PRIVATE ./include)
# All users of this library will need at least C++11
target_compile_features(${LIB_NAME} PUBLIC cxx_std_17)
# IDEs should put the headers in a nice place
source_group(
TREE "${PROJECT_SOURCE_DIR}/include"
PREFIX "Header Files"
FILES ${HEADER_LIST})