mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Make tests work with CTest (#1539)
Adds option to disable non-free tests
This commit is contained in:
@@ -91,10 +91,11 @@ foreach(PROG "asm" "fix" "gfx" "link")
|
||||
${rgb${PROG}_src}
|
||||
${common_src}
|
||||
)
|
||||
if(SUFFIX)
|
||||
set_target_properties(rgb${PROG} PROPERTIES SUFFIX ${SUFFIX})
|
||||
endif()
|
||||
install(TARGETS rgb${PROG} RUNTIME DESTINATION bin)
|
||||
# Required to run tests
|
||||
set_target_properties(rgb${PROG} PROPERTIES
|
||||
# hack for MSVC: no-op generator expression to stop generation of "per-configuration subdirectory"
|
||||
RUNTIME_OUTPUT_DIRECTORY $<1:${CMAKE_SOURCE_DIR}>)
|
||||
endforeach()
|
||||
|
||||
if(LIBPNG_FOUND) # pkg-config
|
||||
|
||||
Reference in New Issue
Block a user