18 lines
377 B
CMake
18 lines
377 B
CMake
|
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
|
||
|
)
|
||
|
|