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()