ocarina/tests/CMakeLists.txt
Anna Schumaker 3b03301e61 tests: Allow disabling the Album Art Fetching test
This test can take a long time to run, especially on slow internet
connections.  Let's add a way to disable it when testing other things.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2016-09-23 16:11:02 -04:00

13 lines
395 B
CMake

add_definitions(${DEBUG_OPTIONS} -DCONFIG_TESTING)
if (CONFIG_TESTING_ALBUM_ARTWORK)
add_definitions(${DEBUG_OPTIONS} -DCONFIG_ALBUM_ART_TEST)
endif()
# Handle files that depend on CONFIG_TESTING_DIR
list(REMOVE_ITEM core ${PROJECT_SOURCE_DIR}/core/file.c)
list(APPEND corefiles ${PROJECT_SOURCE_DIR}/core/file.c)
add_library(corelib OBJECT EXCLUDE_FROM_ALL ${core})
add_subdirectory(core/)