mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-23 13:41:02 +00:00
30 lines
679 B
CMake
30 lines
679 B
CMake
file(GLOB_RECURSE SRC_FILES CONFIGURE_DEPENDS
|
|
*.cpp
|
|
*.hpp
|
|
*.rc
|
|
)
|
|
|
|
list(SORT SRC_FILES)
|
|
|
|
add_executable(windows-emulator-test ${SRC_FILES})
|
|
|
|
momo_assign_source_group(${SRC_FILES})
|
|
|
|
target_link_libraries(windows-emulator-test PRIVATE
|
|
gtest
|
|
gtest_main
|
|
windows-emulator
|
|
)
|
|
|
|
if(WIN32)
|
|
add_dependencies(windows-emulator-test test-sample)
|
|
endif()
|
|
|
|
add_test(NAME windows-emulator-test
|
|
COMMAND "${PYTHON3_EXE}" "${PROJECT_SOURCE_DIR}/deps/gtest-parallel/gtest_parallel.py" ./windows-emulator-test
|
|
WORKING_DIRECTORY "$<TARGET_FILE_DIR:windows-emulator-test>")
|
|
|
|
momo_targets_set_folder("tests" windows-emulator-test)
|
|
|
|
momo_strip_target(windows-emulator-test)
|