blob: 2ae5917aa9782157e6827a0f3b130539910468db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
set(frozen.examples.srcs enum_to_string enum_to_string_hash pixel_art static_assert value_modification)
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES ".*Clang")
list(APPEND frozen.examples.srcs html_entities_map)
endif()
foreach(src IN LISTS frozen.examples.srcs)
add_executable(frozen.example.${src} ${src}.cpp)
target_link_libraries(frozen.example.${src} PUBLIC frozen::frozen)
endforeach()
if (TARGET frozen.example.html_entities_map)
target_compile_options(frozen.example.html_entities_map PUBLIC
$<$<CXX_COMPILER_ID:Clang>:-fconstexpr-steps=123456789>
$<$<CXX_COMPILER_ID:AppleClang>:-fconstexpr-steps=123456789>)
endif()
|