Build tests conditionally

This commit is contained in:
Alex 2020-07-09 22:54:11 +02:00
parent 5869197ce7
commit 907c086b0f
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 4 additions and 2 deletions

View File

@ -9,8 +9,10 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build/archive)
enable_testing()
add_subdirectory(tests)
if ( BUILD_TESTS )
enable_testing()
add_subdirectory(tests)
endif()
set(build_FILES src/uirc.c)
if ( USE_HELPERS )
message("Helper functions are going to be built.")