https://github.com/Kitware/CMake
Raw File
Tip revision: b9698ba3ca18b985e13abbce04a0947c2170461d authored by Kyle Edwards on 25 August 2022, 13:14:13 UTC
Merge branch 'release-3.24'
Tip revision: b9698ba
per_config_c.cmake
enable_language(C)

add_executable(per_config_c per_config_c.c
  "$<$<CONFIG:Debug>:per_config_c_debug.c>"
  "$<$<NOT:$<CONFIG:Debug>>:per_config_c_other.c>"
  )

set_target_properties(per_config_c PROPERTIES UNITY_BUILD ON)
target_compile_definitions(per_config_c PRIVATE
  "$<$<CONFIG:Debug>:CFG_DEBUG>"
  "$<$<NOT:$<CONFIG:Debug>>:CFG_OTHER>"
  )
back to top