init
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
cmake_minimum_required(VERSION 4.0)
|
||||
|
||||
project(autoopt)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 23)
|
||||
|
||||
add_compile_options(-Wall -Werror -Wpedantic)
|
||||
|
||||
add_library(autoopt INTERFACE)
|
||||
target_include_directories(autoopt INTERFACE include)
|
||||
|
||||
install(DIRECTORY include/autoopt DESTINATION include)
|
||||
|
||||
# add tests if gtest is found
|
||||
find_library(GTestPackage gtest QUIET)
|
||||
if(GTestPackage)
|
||||
enable_testing()
|
||||
add_subdirectory(tests)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user