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