-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR adds unit tests from PR #1139 of C SDK Development Branch.
- Loading branch information
Showing
7 changed files
with
1,728 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Include filepaths for source and include. | ||
include(jsonFilePaths.cmake) | ||
|
||
# JSON library target. | ||
add_library( json | ||
${JSON_SOURCES} ) | ||
|
||
# JSON public include path. | ||
target_include_directories( json PUBLIC ${JSON_INCLUDE_PUBLIC_DIRS} | ||
${LOGGING_INCLUDE_DIRS} ) | ||
|
||
# Organization of JSON in IDE projects. | ||
set_target_properties( json PROPERTIES FOLDER libraries/standard ) | ||
source_group( include FILES include/json.h ) | ||
source_group( src FILES ${JSON_SOURCES} ) | ||
|
||
if(BUILD_TESTS) | ||
add_subdirectory(utest) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# This file is to add source files and include directories | ||
# into variables so that it can be reused from different repositories | ||
# in their Cmake based build system by including this file. | ||
# | ||
# Files specific to the repository such as test runner, platform tests | ||
# are not added to the variables. | ||
|
||
# JSON library source files. | ||
set( JSON_SOURCES | ||
${MODULES_DIR}/standard/json/src/json.c ) | ||
|
||
# JSON library Public Include directories. | ||
set( JSON_INCLUDE_PUBLIC_DIRS | ||
${MODULES_DIR}/standard/json/include ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.