Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
protobuf-c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
protobuf-c
Commits
db6c49cc
Commit
db6c49cc
authored
May 08, 2020
by
Ilya Lipnitskiy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMakeLists.txt: Add pkg-config logic (Fixes #339)
parent
d6eaa410
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
build-cmake/CMakeLists.txt
build-cmake/CMakeLists.txt
+11
-1
No files found.
build-cmake/CMakeLists.txt
View file @
db6c49cc
SET
(
PACKAGE protobuf-c
)
SET
(
PACKAGE_NAME protobuf-c
)
SET
(
PACKAGE_VERSION 1.3.3
)
SET
(
PACKAGE_URL https://github.com/protobuf-c/protobuf-c
)
SET
(
PACKAGE_DESCRIPTION
"Protocol Buffers implementation in C"
)
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.8 FATAL_ERROR
)
...
...
@@ -141,6 +142,15 @@ IF(CMAKE_HOST_UNIX)
INSTALL
(
CODE
"EXECUTE_PROCESS (COMMAND ln -sf protoc-gen-c protoc-c WORKING_DIRECTORY
${
CMAKE_INSTALL_PREFIX
}
/bin)"
)
ENDIF
()
INCLUDE
(
GNUInstallDirs
)
SET
(
prefix
${
CMAKE_INSTALL_PREFIX
}
)
SET
(
exec_prefix \
${
prefix
}
)
SET
(
bindir \
${
exec_prefix
}
/
${
CMAKE_INSTALL_BINDIR
}
)
SET
(
libdir \
${
exec_prefix
}
/
${
CMAKE_INSTALL_LIBDIR
}
)
SET
(
includedir \
${
prefix
}
/
${
CMAKE_INSTALL_INCLUDEDIR
}
)
CONFIGURE_FILE
(
${
MAIN_DIR
}
/protobuf-c/libprotobuf-c.pc.in libprotobuf-c.pc @ONLY
)
INSTALL
(
FILES
${
CMAKE_BINARY_DIR
}
/libprotobuf-c.pc DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
/pkgconfig
)
INCLUDE
(
Dart
)
SET
(
DART_TESTING_TIMEOUT 5
)
...
...
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