mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 17:30:44 +02:00
include version resource in DLLs built with CMake
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user