Build maxbase tests only if BUILD_TESTS in on

This commit is contained in:
Esa Korhonen
2020-04-30 17:55:23 +03:00
parent df01a6e9e0
commit c34b835c51

View File

@ -20,4 +20,7 @@ target_link_libraries(maxbase systemd)
endif()
set_target_properties(maxbase PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs)
add_subdirectory(test)
if (BUILD_TESTS)
add_subdirectory(test)
endif()