mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-21 05:38:24 -05:00
9a5418320e
Fixes: #19946 Fixes: #19947 Co-authored-by: Craig Scott <craig.scott@crascit.com>
10 lines
240 B
CMake
10 lines
240 B
CMake
project(unitybuild_runtest C)
|
|
|
|
set(CMAKE_UNITY_BUILD ON) # This tests that the variable works in addition to the property
|
|
|
|
add_library(lib main.c func.c)
|
|
add_executable(main main.c func.c)
|
|
|
|
enable_testing()
|
|
add_test(NAME main COMMAND main)
|