Format to lower-case

This commit is contained in:
Andres6936 2021-12-26 11:42:39 -05:00
parent cda19ed07b
commit 3e90985c36
7 changed files with 32 additions and 32 deletions

View File

@ -73,7 +73,7 @@ message(STATUS "JsonCpp Version: ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINO
set(PROJECT_SOVERSION 25) set(PROJECT_SOVERSION 25)
# Defines the project root to be used throughout all scripts. # Defines the project root to be used throughout all scripts.
SET(JSONCPP_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}) set(JSONCPP_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR})
include(${CMAKE_CURRENT_SOURCE_DIR}/include/PreventInSourceBuilds.cmake) include(${CMAKE_CURRENT_SOURCE_DIR}/include/PreventInSourceBuilds.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/include/PreventInBuildInstalls.cmake) include(${CMAKE_CURRENT_SOURCE_DIR}/include/PreventInBuildInstalls.cmake)

View File

@ -1,6 +1,6 @@
#vim: et ts =4 sts = 4 sw = 4 tw = 0 #vim: et ts =4 sts = 4 sw = 4 tw = 0
ADD_SUBDIRECTORY(readFromStream/) add_subdirectory(readFromStream/)
ADD_SUBDIRECTORY(readFromString/) add_subdirectory(readFromString/)
ADD_SUBDIRECTORY(streamWrite/) add_subdirectory(streamWrite/)
ADD_SUBDIRECTORY(stringWrite/) add_subdirectory(stringWrite/)

View File

@ -1,2 +1,2 @@
ADD_EXECUTABLE(readFromStream readFromStream.cpp) add_executable(readFromStream readFromStream.cpp)
TARGET_LINK_LIBRARIES(readFromStream PRIVATE jsoncpp::framework) target_link_libraries(readFromStream PRIVATE jsoncpp::framework)

View File

@ -1,2 +1,2 @@
ADD_EXECUTABLE(readFromString readFromString.cpp) add_executable(readFromString readFromString.cpp)
TARGET_LINK_LIBRARIES(readFromString PRIVATE jsoncpp::framework) target_link_libraries(readFromString PRIVATE jsoncpp::framework)

View File

@ -1,2 +1,2 @@
ADD_EXECUTABLE(streamWrite streamWrite.cpp) add_executable(streamWrite streamWrite.cpp)
TARGET_LINK_LIBRARIES(streamWrite PRIVATE jsoncpp::framework) target_link_libraries(streamWrite PRIVATE jsoncpp::framework)

View File

@ -1,2 +1,2 @@
ADD_EXECUTABLE(stringWrite stringWrite.cpp) add_executable(stringWrite stringWrite.cpp)
TARGET_LINK_LIBRARIES(stringWrite PRIVATE jsoncpp::framework) target_link_libraries(stringWrite PRIVATE jsoncpp::framework)

View File

@ -84,48 +84,48 @@ list(APPEND REQUIRED_FEATURES
# Property: OBJECT # Property: OBJECT
ADD_LIBRARY(jsoncpp.framework.object OBJECT add_library(jsoncpp.framework.object OBJECT
json_reader.cpp json_reader.cpp
json_value.cpp json_value.cpp
json_writer.cpp json_writer.cpp
) )
SET_TARGET_PROPERTIES(jsoncpp.framework.object PROPERTIES CXX_STANDARD 11) set_target_properties(jsoncpp.framework.object PROPERTIES CXX_STANDARD 11)
SET_TARGET_PROPERTIES(jsoncpp.framework.object PROPERTIES VERSION ${PROJECT_VERSION}) set_target_properties(jsoncpp.framework.object PROPERTIES VERSION ${PROJECT_VERSION})
SET_TARGET_PROPERTIES(jsoncpp.framework.object PROPERTIES SOVERSION ${PROJECT_SOVERSION}) set_target_properties(jsoncpp.framework.object PROPERTIES SOVERSION ${PROJECT_SOVERSION})
TARGET_COMPILE_FEATURES(jsoncpp.framework.object PUBLIC ${REQUIRED_FEATURES}) target_compile_features(jsoncpp.framework.object PUBLIC ${REQUIRED_FEATURES})
TARGET_INCLUDE_DIRECTORIES(jsoncpp.framework.object PUBLIC $<BUILD_INTERFACE:${JSONCPP_ROOT_DIR}/include>) target_include_directories(jsoncpp.framework.object PUBLIC $<BUILD_INTERFACE:${JSONCPP_ROOT_DIR}/include>)
IF (JSONCPP_BUILD_SHARED_LIBS) if (JSONCPP_BUILD_SHARED_LIBS)
# CMake link shared library on Windows # CMake link shared library on Windows
# Ref: https://stackoverflow.com/a/41618677 # Ref: https://stackoverflow.com/a/41618677
SET(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE) set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
# The POSITION_INDEPENDENT_CODE property determines whether position independent executables or # The POSITION_INDEPENDENT_CODE property determines whether position independent executables or
# shared libraries will be created. This property is True by default for SHARED and MODULE library # shared libraries will be created. This property is True by default for SHARED and MODULE library
# targets and False otherwise. # targets and False otherwise.
# Property: SHARED, POSITION_INDEPENDENT_CODE # Property: SHARED, POSITION_INDEPENDENT_CODE
ADD_LIBRARY(jsoncpp.framework SHARED $<TARGET_OBJECTS:jsoncpp.framework.object>) add_library(jsoncpp.framework SHARED $<TARGET_OBJECTS:jsoncpp.framework.object>)
# Needed for legacy code # Needed for legacy code
TARGET_COMPILE_DEFINITIONS(jsoncpp.framework PUBLIC JSON_DLL_BUILD) target_compile_definitions(jsoncpp.framework PUBLIC JSON_DLL_BUILD)
ELSE () else ()
ADD_LIBRARY(jsoncpp.framework STATIC $<TARGET_OBJECTS:jsoncpp.framework.object>) add_library(jsoncpp.framework STATIC $<TARGET_OBJECTS:jsoncpp.framework.object>)
ENDIF () endif ()
ADD_LIBRARY(jsoncpp::framework ALIAS jsoncpp.framework) add_library(jsoncpp::framework ALIAS jsoncpp.framework)
SET_TARGET_PROPERTIES(jsoncpp.framework PROPERTIES CXX_STANDARD 11) set_target_properties(jsoncpp.framework PROPERTIES CXX_STANDARD 11)
SET_TARGET_PROPERTIES(jsoncpp.framework PROPERTIES VERSION ${PROJECT_VERSION}) set_target_properties(jsoncpp.framework PROPERTIES VERSION ${PROJECT_VERSION})
SET_TARGET_PROPERTIES(jsoncpp.framework PROPERTIES SOVERSION ${PROJECT_SOVERSION}) set_target_properties(jsoncpp.framework PROPERTIES SOVERSION ${PROJECT_SOVERSION})
TARGET_COMPILE_FEATURES(jsoncpp.framework PUBLIC ${REQUIRED_FEATURES}) target_compile_features(jsoncpp.framework PUBLIC ${REQUIRED_FEATURES})
# It is necessary to repeat these instructions again, in case of not doing it, the executables # It is necessary to repeat these instructions again, in case of not doing it, the executables
# will be unable to locate the Headers needed to perform the linking # will be unable to locate the Headers needed to perform the linking
TARGET_INCLUDE_DIRECTORIES(jsoncpp.framework PUBLIC $<BUILD_INTERFACE:${JSONCPP_ROOT_DIR}/include>) target_include_directories(jsoncpp.framework PUBLIC $<BUILD_INTERFACE:${JSONCPP_ROOT_DIR}/include>)