Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
b1fecd0d
Commit
b1fecd0d
authored
Apr 27, 2018
by
Jozef Izso
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include file information in all DLL and EXE outputs
parent
3415201d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
5 deletions
+20
-5
libprotobuf-lite.cmake
cmake/libprotobuf-lite.cmake
+5
-2
libprotobuf.cmake
cmake/libprotobuf.cmake
+5
-1
libprotoc.cmake
cmake/libprotoc.cmake
+5
-1
protoc.cmake
cmake/protoc.cmake
+5
-1
No files found.
cmake/libprotobuf-lite.cmake
View file @
b1fecd0d
...
...
@@ -48,9 +48,12 @@ set(libprotobuf_lite_includes
${
protobuf_source_dir
}
/src/google/protobuf/wire_format_lite.h
)
set
(
libprotobuf_lite_rc_files
${
CMAKE_CURRENT_BINARY_DIR
}
/version.rc
)
add_library
(
libprotobuf-lite
${
protobuf_SHARED_OR_STATIC
}
${
libprotobuf_lite_files
}
${
libprotobuf_lite_includes
}
${
CMAKE_CURRENT_BINARY_DIR
}
/version.rc
)
${
libprotobuf_lite_files
}
${
libprotobuf_lite_includes
}
${
libprotobuf_lite_rc_files
}
)
target_link_libraries
(
libprotobuf-lite
${
CMAKE_THREAD_LIBS_INIT
}
)
target_include_directories
(
libprotobuf-lite PUBLIC
${
protobuf_source_dir
}
/src
)
if
(
MSVC AND protobuf_BUILD_SHARED_LIBS
)
...
...
cmake/libprotobuf.cmake
View file @
b1fecd0d
...
...
@@ -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
}
)
...
...
cmake/libprotoc.cmake
View file @
b1fecd0d
...
...
@@ -161,6 +161,10 @@ set(libprotoc_headers
${
protobuf_source_dir
}
/src/google/protobuf/compiler/zip_writer.h
)
set
(
libprotoc_rc_files
${
CMAKE_CURRENT_BINARY_DIR
}
/version.rc
)
set
(
js_well_known_types_sources
${
protobuf_source_dir
}
/src/google/protobuf/compiler/js/well_known_types/any.js
${
protobuf_source_dir
}
/src/google/protobuf/compiler/js/well_known_types/struct.js
...
...
@@ -174,7 +178,7 @@ add_custom_command(
)
add_library
(
libprotoc
${
protobuf_SHARED_OR_STATIC
}
${
libprotoc_files
}
${
libprotoc_headers
}
)
${
libprotoc_files
}
${
libprotoc_headers
}
${
libprotoc_rc_files
}
)
target_link_libraries
(
libprotoc libprotobuf
)
if
(
MSVC AND protobuf_BUILD_SHARED_LIBS
)
target_compile_definitions
(
libprotoc
...
...
cmake/protoc.cmake
View file @
b1fecd0d
...
...
@@ -2,7 +2,11 @@ set(protoc_files
${
protobuf_source_dir
}
/src/google/protobuf/compiler/main.cc
)
add_executable
(
protoc
${
protoc_files
}
${
CMAKE_CURRENT_BINARY_DIR
}
/version.rc
)
set
(
protoc_rc_files
${
CMAKE_CURRENT_BINARY_DIR
}
/version.rc
)
add_executable
(
protoc
${
protoc_files
}
${
protoc_rc_files
}
)
target_link_libraries
(
protoc libprotobuf libprotoc
)
add_executable
(
protobuf::protoc ALIAS protoc
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment