diff --git a/CMakeLists.txt b/CMakeLists.txt index c363f8e..1c425e4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,13 +1,10 @@ cmake_minimum_required(VERSION 3.21) -set(CMAKE_CXX_STANDARD 20) project(libbasen VERSION 1.1.1 DESCRIPTION "c++20 encoding/decoding from arbitrary base" LANGUAGES CXX ) -set(CXX_FLAGS "-Wall -Wextra -Werror -Wno-unused-result -O3") - if(DEFINED BASEN_SHARED_LIBS) set(BUILD_SHARED_LIBS ${BASEN_SHARED_LIBS}) endif() @@ -27,6 +24,15 @@ endforeach() add_library(basen ${SRCS}) add_library(basen::basen ALIAS basen) + +target_compile_options(basen PRIVATE + -std=c++20 + -Wall + -Wextra + -Werror + -Wno-unused-result + -O3 +) target_include_directories(basen PUBLIC $ $ diff --git a/ideas b/ideas new file mode 100644 index 0000000..1dcb671 --- /dev/null +++ b/ideas @@ -0,0 +1,7 @@ ++ testing with &, chech() in PKGBUILD ++ simplifying documentation of baseN ++ windows compatibility +argparse dependency notification in readme, make SHARED= in readme ++ cmake +export "C" +exceptions to enum instead of enum class \ No newline at end of file