unitybuild_runtest.cmake 240 Bytes
Newer Older
Cristian Adam's avatar
Cristian Adam committed
1 2 3 4
project(unitybuild_runtest C)

set(CMAKE_UNITY_BUILD ON) # This tests that the variable works in addition to the property

5
add_library(lib main.c func.c)
Cristian Adam's avatar
Cristian Adam committed
6 7 8 9
add_executable(main main.c func.c)

enable_testing()
add_test(NAME main COMMAND main)