This commit is contained in:
2026-07-01 11:11:06 +03:00
parent 2894373fc3
commit a884450c2d
3 changed files with 4 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.10.0) cmake_minimum_required(VERSION 3.10.0)
project(snipplib VERSION 0.1.0 LANGUAGES CXX) project(snipplib VERSION 0.1.0 LANGUAGES CXX)
option(BUILD_EXAMPLES "Build examples" ON) option(SNPLIB_BUILD_EXAMPLES "Build examples" ON)
set(LIB_HEADERS set(LIB_HEADERS
include/snipplib/concepts/snplib_concepts.h include/snipplib/concepts/snplib_concepts.h
@@ -25,7 +25,7 @@ target_include_directories(
"$<INSTALL_INTERFACE:include/${PROJECT_NAME}>" "$<INSTALL_INTERFACE:include/${PROJECT_NAME}>"
) )
if(BUILD_EXAMPLES) if(SNPLIB_BUILD_EXAMPLES)
set(EXAM_STRING str_exam) set(EXAM_STRING str_exam)
add_executable(${EXAM_STRING} examples/str_exam.cpp) add_executable(${EXAM_STRING} examples/str_exam.cpp)
target_link_libraries(${EXAM_STRING} ${PROJECT_NAME}) target_link_libraries(${EXAM_STRING} ${PROJECT_NAME})

View File

@@ -89,8 +89,8 @@ int main()
std::println("\n\n"); std::println("\n\n");
std::println("RAND STR: {}", rstr_gen.generate()); std::println("RAND STR: {}", rstr_gen.generate());
std::println("RAND STR: {}", rstr_gen.generate()); std::println("RAND STR: {}", rstr_gen.generate());
std::println("UUID v4: {}", rstr_gen.UUIDv4String()); std::println("UUID v.4: {}", rstr_gen.UUIDv4String());
std::println("UUID v4: {}", rstr_gen.UUIDv4String()); std::println("UUID v.4: {}", rstr_gen.UUIDv4String());
return 0; return 0;
} }

View File

@@ -1,7 +1,6 @@
#pragma once #pragma once
#include <algorithm> #include <algorithm>
#include <functional>
#include <random> #include <random>
#include <string> #include <string>