CMake: Build test by default

This commit is contained in:
Max Bruckner 2016-11-05 16:40:23 +07:00
parent c3fecc2d07
commit 47841ed3a7

View File

@ -64,7 +64,7 @@ set_target_properties(${CJSON_UTILS_LIB}
SOVERSION ${CJSON_UTILS_VERSION_SO}
VERSION ${CJSON_VERSION})
option(ENABLE_CJSON_TEST "Enable building cJSON test" OFF)
option(ENABLE_CJSON_TEST "Enable building cJSON test" ON)
if(ENABLE_CJSON_TEST)
set(TEST_CJSON cJSON_test)
add_executable(${TEST_CJSON} test.c)