You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
754 B
36 lines
754 B
enable_language(C)
|
|
include(GoogleTest)
|
|
|
|
enable_testing()
|
|
|
|
include(xcode_sign_adhoc.cmake)
|
|
|
|
add_executable(test_launcher test_launcher.c)
|
|
|
|
add_executable(launcher_test launcher_test.c)
|
|
xcode_sign_adhoc(launcher_test)
|
|
set(launcher
|
|
"$<TARGET_FILE:test_launcher>"
|
|
"" # Verify CMP0178's handling of an empty list item
|
|
"launcherparam"
|
|
"--"
|
|
)
|
|
set_property(TARGET launcher_test PROPERTY TEST_LAUNCHER "${launcher}")
|
|
set(emulator
|
|
"$<TARGET_FILE:test_launcher>"
|
|
"" # Verify CMP0178's handling of an empty list item
|
|
"emulatorparam"
|
|
"--"
|
|
)
|
|
set_property(TARGET launcher_test PROPERTY CROSSCOMPILING_EMULATOR "${emulator}")
|
|
|
|
gtest_discover_tests(
|
|
launcher_test
|
|
EXTRA_ARGS a "" b
|
|
)
|
|
|
|
gtest_add_tests(
|
|
TARGET launcher_test
|
|
EXTRA_ARGS a "" b
|
|
)
|