include version resource in DLLs built with CMake

This commit is contained in:
Günter Obiltschnig
2019-06-24 15:39:06 +02:00
parent 472684e13c
commit 9a8ab0858f
20 changed files with 122 additions and 3 deletions

View File

@@ -7,6 +7,12 @@ file(GLOB_RECURSE HDRS_G "include/*.h" )
POCO_HEADERS_AUTO( SRCS ${HDRS_G})
POCO_SOURCES(SRCS pdjson src/pdjson.c)
# Version Resource
if(MSVC AND NOT POCO_STATIC)
source_group("Resources" FILES ${CMAKE_SOURCE_DIR}/DLLVersion.rc)
list(APPEND SRCS ${CMAKE_SOURCE_DIR}/DLLVersion.rc)
endif()
add_library(JSON ${SRCS} )
add_library(Poco::JSON ALIAS JSON)
set_target_properties(JSON