Skip to content

Commit

Permalink
make the cmake commandlines safer
Browse files Browse the repository at this point in the history
  • Loading branch information
randomdude999 committed Jan 21, 2024
1 parent 546dfbd commit b5de660
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/asar-tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ if(ASAR_GEN_EXE_TEST)
set_asar_test_shared_properties(asar-app-test)

add_custom_target(run-app-test
asar-app-test $<TARGET_FILE:asar-standalone> ${CMAKE_CURRENT_SOURCE_DIR}/../../tests ${CMAKE_CURRENT_SOURCE_DIR}/../../dummy_rom.sfc ${CMAKE_CURRENT_BINARY_DIR}/tests-tmp)
asar-app-test "$<TARGET_FILE:asar-standalone>" "${CMAKE_CURRENT_SOURCE_DIR}/../../tests" "${CMAKE_CURRENT_SOURCE_DIR}/../../dummy_rom.sfc" "${CMAKE_CURRENT_BINARY_DIR}/tests-tmp-app"
VERBATIM)
add_dependencies(run-tests run-app-test)
endif()

Expand All @@ -103,6 +104,7 @@ if(ASAR_GEN_DLL_TEST)
set(CMAKE_LINKER_FLAGS_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG} -fsanitize=address")

add_custom_target(run-dll-test
asar-dll-test $<TARGET_FILE:asar> ${CMAKE_CURRENT_SOURCE_DIR}/../../tests ${CMAKE_CURRENT_SOURCE_DIR}/../../dummy_rom.sfc ${CMAKE_CURRENT_BINARY_DIR}/tests-tmp)
asar-dll-test "$<TARGET_FILE:asar>" "${CMAKE_CURRENT_SOURCE_DIR}/../../tests" "${CMAKE_CURRENT_SOURCE_DIR}/../../dummy_rom.sfc" "${CMAKE_CURRENT_BINARY_DIR}/tests-tmp-dll"
VERBATIM)
add_dependencies(run-tests run-dll-test)
endif()

0 comments on commit b5de660

Please sign in to comment.