-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
27 lines (26 loc) · 817 Bytes
/
CMakeLists.txt
File metadata and controls
27 lines (26 loc) · 817 Bytes
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
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
add_compile_options(-Wno-unused-command-line-argument)
endif()
#
# module with partitions
#
add_library(testall)
target_sources(
testall
PRIVATE modall_impl.cpp
PUBLIC FILE_SET
cxx_modules
TYPE
CXX_MODULES
FILES
modall_if.cppm
modall_ifpart.cppm # interface partition
modall_part.cppm # internal partition
)
set_target_properties(testall PROPERTIES CXX_STANDARD ${CMAKE_CXX_STANDARD})
if(CMAKE_SKIP_INSTALL_RULES AND CMAKE_BUILD_TYPE STREQUAL "Debug")
target_link_libraries(testall PUBLIC $<BUILD_INTERFACE:project_warnings project_options>)
endif()
add_executable(modall_test modall_test.cpp)
target_link_libraries(modall_test testall)
add_test(NAME modall_test COMMAND modall_test)