1 2 3 4 5 6 7 8 9 10 11 12 13
cmake_minimum_required(VERSION 3.5) project(test) set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED On) set(CMAKE_CXX_EXTENSIONS Off) add_library(test INTERFACE test.h) target_include_directories(test INTERFACE .)