File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1030,10 +1030,14 @@ parse_makefile_for_sources(unit-test_SOURCES ${CMAKE_SOURCE_DIR}/Makefile "UNIT_
10301030list (TRANSFORM unit-test_SOURCES REPLACE "\\ $\\ (UNIT_TEST_DIR\\ )/" "${CMAKE_SOURCE_DIR} /t/unit-tests/" )
10311031add_library (unit-test -lib STATIC ${unit-test_SOURCES})
10321032
1033+ parse_makefile_for_sources(clar-test_SOURCES ${CMAKE_SOURCE_DIR} /Makefile "CLAR_TEST_OBJS" )
1034+ list (TRANSFORM clar-test_SOURCES REPLACE "\\ $\\ (UNIT_TEST_DIR\\ )/" "${CMAKE_SOURCE_DIR} /t/unit-tests/" )
1035+ add_library (clar-test -lib STATIC ${clar-test_SOURCES})
1036+
10331037parse_makefile_for_scripts(unit_test_PROGRAMS "UNIT_TEST_PROGRAMS" "" )
10341038foreach (unit_test ${unit_test_PROGRAMS} )
10351039 add_executable ("${unit_test} " "${CMAKE_SOURCE_DIR} /t/unit-tests/${unit_test} .c" )
1036- target_link_libraries ("${unit_test} " unit-test -lib common-main)
1040+ target_link_libraries ("${unit_test} " unit-test -lib clar- test -lib common-main)
10371041 set_target_properties ("${unit_test} "
10381042 PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /t/unit-tests/bin)
10391043 if (MSVC )
You can’t perform that action at this time.
0 commit comments