This commit is contained in:
2026-06-17 13:09:06 +03:00
parent 60a261f18c
commit 6cb54740b4
3 changed files with 112 additions and 74 deletions

View File

@@ -3,11 +3,12 @@ project(snipplib VERSION 0.1.0 LANGUAGES CXX)
option(BUILD_EXAMPLES "Build examples" ON)
set(LIB_HEADERS include/snipplib/concepts/snplib_concepts.h
include/snipplib/utils/snplib_hash.h
include/snipplib/utils/snplib_utils.h
include/snipplib/hmap/snplib_hmap.h)
set(LIB_HEADERS
include/snipplib/concepts/snplib_concepts.h
include/snipplib/utils/snplib_hash.h
include/snipplib/utils/snplib_utils.h
include/snipplib/containers/snplib_hmap.h
)
add_library(${PROJECT_NAME} INTERFACE ${LIB_HEADERS})
target_compile_features(${PROJECT_NAME} INTERFACE cxx_std_23)
@@ -18,7 +19,6 @@ target_include_directories(
"$<INSTALL_INTERFACE:include/${PROJECT_NAME}>"
)
set(EXAM_STRING str_exam)
add_executable(${EXAM_STRING} examples/str_exam.cpp)
target_link_libraries(${EXAM_STRING} ${PROJECT_NAME})
target_link_libraries(${EXAM_STRING} ${PROJECT_NAME})