mirror of
				https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
				synced 2025-11-03 20:18:01 +00:00 
			
		
		
		
	compile pdjson as C++; disarm some windows warnings
This commit is contained in:
		@@ -6,7 +6,7 @@
 | 
			
		||||
# ENABLE_{COMPONENT}
 | 
			
		||||
# ENABLE_TESTS
 | 
			
		||||
 | 
			
		||||
cmake_minimum_required(VERSION 2.8.12)
 | 
			
		||||
cmake_minimum_required(VERSION 3.2.0)
 | 
			
		||||
 | 
			
		||||
project(Poco)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,9 @@
 | 
			
		||||
set(LIBNAME "CppUnit")
 | 
			
		||||
 | 
			
		||||
# Sources
 | 
			
		||||
if (WIN32)
 | 
			
		||||
    add_definitions(-D_CRT_SECURE_NO_WARNINGS)
 | 
			
		||||
endif (WIN32)
 | 
			
		||||
file(GLOB SRCS_G "src/*.cpp")
 | 
			
		||||
POCO_SOURCES_AUTO( SRCS ${SRCS_G})
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -2,6 +2,10 @@ set(LIBNAME "JSON")
 | 
			
		||||
set(POCO_LIBNAME "Poco${LIBNAME}")
 | 
			
		||||
 | 
			
		||||
# Sources
 | 
			
		||||
if (WIN32)
 | 
			
		||||
    add_definitions(-D_CRT_SECURE_NO_WARNINGS)
 | 
			
		||||
endif (WIN32)
 | 
			
		||||
 | 
			
		||||
file(GLOB SRCS_G "src/*.cpp")
 | 
			
		||||
POCO_SOURCES_AUTO( SRCS ${SRCS_G})
 | 
			
		||||
 | 
			
		||||
@@ -9,6 +13,7 @@ POCO_SOURCES_AUTO( SRCS ${SRCS_G})
 | 
			
		||||
file(GLOB_RECURSE HDRS_G "include/*.h" )
 | 
			
		||||
POCO_HEADERS_AUTO( SRCS ${HDRS_G})
 | 
			
		||||
POCO_SOURCES(SRCS pdjson src/pd_json.c)
 | 
			
		||||
SET_SOURCE_FILES_PROPERTIES(src/pd_json.c PROPERTIES LANGUAGE CXX)
 | 
			
		||||
 | 
			
		||||
add_library( "${LIBNAME}" ${LIB_MODE} ${SRCS} )
 | 
			
		||||
add_library( "${POCO_LIBNAME}" ALIAS "${LIBNAME}")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user