29 lines
904 B
CMake
29 lines
904 B
CMake
project (libjson CXX)
|
|
|
|
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DJSON_DEBUG")
|
|
set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2 -g -ffast-math -fexpensive-optimizations")
|
|
set (CMAKE_CXX_FLAGS_FINAL "${CMAKE_CXX_FLAGS_FINAL} -O3 -ffast-math -fexpensive-optimizations")
|
|
|
|
set (major_version "7")
|
|
set (minor_version "6.1")
|
|
include_directories(
|
|
.
|
|
_internal/Source
|
|
)
|
|
|
|
add_library(${PROJECT_NAME} STATIC
|
|
_internal/Source/JSONAllocator.cpp
|
|
_internal/Source/JSONChildren.cpp
|
|
_internal/Source/JSONDebug.cpp
|
|
_internal/Source/JSONIterators.cpp
|
|
_internal/Source/JSONMemory.cpp
|
|
_internal/Source/JSONNode.cpp
|
|
_internal/Source/JSONNode_Mutex.cpp
|
|
_internal/Source/JSONPreparse.cpp
|
|
_internal/Source/JSONStream.cpp
|
|
_internal/Source/JSONValidator.cpp
|
|
_internal/Source/JSONWorker.cpp
|
|
_internal/Source/JSONWriter.cpp
|
|
_internal/Source/internalJSONNode.cpp
|
|
_internal/Source/libjson.cpp
|
|
)
|