Files
windows-user-space-emulator/src/windows-emulator-test/CMakeLists.txt
momo5502 59f700e1cd Revert "Fix node tests"
This reverts commit ff050ed74c.
2025-04-18 17:28:42 +02:00

30 lines
711 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 AND CMAKE_SIZEOF_VOID_P EQUAL 8)
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)