summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CrosscompilingEmulator/AddTest.cmake
blob: 41850f267ef9d4b993d2ffc4c8663d7ee855b70f (plain)
1
2
3
4
5
6
7
8
set(CMAKE_CROSSCOMPILING 1)
enable_testing()
add_test(NAME DoesNotUseEmulator
  COMMAND ${CMAKE_COMMAND} -E echo "Hi")

add_executable(generated_exe simple_src.cxx)
add_test(NAME UsesEmulator
  COMMAND generated_exe)