1
0
mirror of https://github.com/DaveGamble/cJSON synced 2024-12-24 07:32:05 +00:00

CMake: Build tests by default

This commit is contained in:
Max Bruckner 2016-11-14 19:36:04 +07:00
parent dc4b62915a
commit 5cca67e3fc

View File

@ -93,7 +93,7 @@ install(FILES ${PROJECT_BINARY_DIR}/cJSONConfig.cmake
${PROJECT_BINARY_DIR}/cJSONConfigVersion.cmake
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/cJSON")
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)