From b1fecd0deae5da49962a396590d4d2204279cabd Mon Sep 17 00:00:00 2001 From: Jozef Izso Date: Sat, 28 Apr 2018 00:12:38 +0200 Subject: Include file information in all DLL and EXE outputs --- cmake/libprotobuf.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cmake/libprotobuf.cmake') diff --git a/cmake/libprotobuf.cmake b/cmake/libprotobuf.cmake index 65d05c19..a1fdf7c0 100644 --- a/cmake/libprotobuf.cmake +++ b/cmake/libprotobuf.cmake @@ -112,8 +112,12 @@ set(libprotobuf_includes ${protobuf_source_dir}/src/google/protobuf/wrappers.pb.h ) +set(libprotobuf_rc_files + ${CMAKE_CURRENT_BINARY_DIR}/version.rc +) + add_library(libprotobuf ${protobuf_SHARED_OR_STATIC} - ${libprotobuf_lite_files} ${libprotobuf_files} ${libprotobuf_includes}) + ${libprotobuf_lite_files} ${libprotobuf_files} ${libprotobuf_includes} ${libprotobuf_rc_files}) target_link_libraries(libprotobuf ${CMAKE_THREAD_LIBS_INIT}) if(protobuf_WITH_ZLIB) target_link_libraries(libprotobuf ${ZLIB_LIBRARIES}) -- cgit v1.2.3