diff options
author | Jozef Izso <jozef.izso@gmail.com> | 2018-04-28 00:12:38 +0200 |
---|---|---|
committer | Jozef Izso <jozef.izso@gmail.com> | 2018-04-28 00:12:38 +0200 |
commit | b1fecd0deae5da49962a396590d4d2204279cabd (patch) | |
tree | 1e3f52033691f75505d63b867ef67b35accb706c /cmake/libprotobuf.cmake | |
parent | 3415201d1dce9f7dc1ed0547ddf083d122a1271c (diff) | |
download | protobuf-b1fecd0deae5da49962a396590d4d2204279cabd.tar.gz protobuf-b1fecd0deae5da49962a396590d4d2204279cabd.tar.bz2 protobuf-b1fecd0deae5da49962a396590d4d2204279cabd.zip |
Include file information in all DLL and EXE outputs
Diffstat (limited to 'cmake/libprotobuf.cmake')
-rw-r--r-- | cmake/libprotobuf.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
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}) |