mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
CMake: Build test by default
This commit is contained in:
parent
c3fecc2d07
commit
47841ed3a7
@ -64,7 +64,7 @@ set_target_properties(${CJSON_UTILS_LIB}
|
|||||||
SOVERSION ${CJSON_UTILS_VERSION_SO}
|
SOVERSION ${CJSON_UTILS_VERSION_SO}
|
||||||
VERSION ${CJSON_VERSION})
|
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)
|
if(ENABLE_CJSON_TEST)
|
||||||
set(TEST_CJSON cJSON_test)
|
set(TEST_CJSON cJSON_test)
|
||||||
add_executable(${TEST_CJSON} test.c)
|
add_executable(${TEST_CJSON} test.c)
|
||||||
|
Loading…
Reference in New Issue
Block a user