cxxmodules_minimal/CMakeLists.txt

18 lines
377 B
CMake
Raw Permalink Normal View History

2024-09-11 16:37:20 +02:00
cmake_minimum_required(VERSION 3.8)
project(test_project)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_SCAN_FOR_MODULES ON)
add_executable(modules_test)
target_sources(modules_test
PRIVATE main.cpp
PUBLIC FILE_SET CXX_MODULES FILES module.cppm
)