-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
40 lines (30 loc) · 940 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
cmake_minimum_required(VERSION 3.20.3)
project(cpp20 VERSION 0.1.0)
# set(CMAKE_CXX_STANDARD 20)
# set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(CTest)
enable_testing()
add_executable(cpp20
main.cpp
poweroftwo.ixx
generators.ixx
hello.ixx
pmrhelper.ixx
move_semantics.ixx
)
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)
set(GENERATED_FILES_DIR ${CMAKE_CURRENT_BINARY_DIR}/cpp20.dir/${CMAKE_BUILD_TYPE})
message(STATUS "Generating ${GENERATED_FILES_DIR}")
target_compile_options(cpp20
PRIVATE
/experimental:module
/ifcSearchDir"R:\\Richard\\src\\playground\\c++\\C++20\\build\\cpp20.dir"
)
# find_package(OpenSSL REQUIRED)
# target_link_libraries(cpp20 PRIVATE OpenSSL::SSL OpenSSL::Crypto)
# find_package(cppcoro CONFIG REQUIRED)
# target_link_libraries(cpp20 PRIVATE cppcoro)