Correct test call

This commit is contained in:
Godzil 2017-03-16 20:03:37 +01:00
parent b6c4793f44
commit a09f33fe33
2 changed files with 6 additions and 1 deletions

View File

@ -21,4 +21,8 @@ find_package(OpenGL REQUIRED)
include_directories(${OPENGL_INCLUDE_DIR})
if (COVERALLS)
enable_testing()
endif (COVERALLS)
add_subdirectory (src)

View File

@ -102,4 +102,5 @@ endif()
add_executable(tines main.c paddle.c NESCarts.c)
target_link_libraries(tines apu corecpu mappermanager memorymanager pluginsmanager ppu oslib ${PTHREADLIB})
add_test(tines_test ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/src/tines ${PROJECT_SOURCE_DIR}/data/bad_apple_2.nes)
add_test(NAME tines_test COMMAND $<TARGET_FILE:tines> ${PROJECT_SOURCE_DIR}/data/bad_apple_2.nes)