Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
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
libzmq
Commits
409721b9
Commit
409721b9
authored
Jul 14, 2013
by
Steven McCoy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add CMake support for static libraries.
parent
21fe6008
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
CMakeLists.txt
CMakeLists.txt
+9
-2
No files found.
CMakeLists.txt
View file @
409721b9
...
...
@@ -496,6 +496,13 @@ if(MSVC)
PUBLIC_HEADER
"
${
public_headers
}
"
RELEASE_POSTFIX
"
${
_zmq_COMPILER
}
-mt-
${
ZMQ_VERSION_MAJOR
}
_
${
ZMQ_VERSION_MINOR
}
_
${
ZMQ_VERSION_PATCH
}
"
DEBUG_POSTFIX
"
${
_zmq_COMPILER
}
-mt-gd-
${
ZMQ_VERSION_MAJOR
}
_
${
ZMQ_VERSION_MINOR
}
_
${
ZMQ_VERSION_PATCH
}
"
)
add_library
(
libzmq-static STATIC
${
sources
}
)
set_target_properties
(
libzmq-static PROPERTIES
PUBLIC_HEADER
"
${
public_headers
}
"
RELEASE_POSTFIX
"
${
_zmq_COMPILER
}
-mt-s-
${
ZMQ_VERSION_MAJOR
}
_
${
ZMQ_VERSION_MINOR
}
_
${
ZMQ_VERSION_PATCH
}
"
DEBUG_POSTFIX
"
${
_zmq_COMPILER
}
-mt-sgd-
${
ZMQ_VERSION_MAJOR
}
_
${
ZMQ_VERSION_MINOR
}
_
${
ZMQ_VERSION_PATCH
}
"
COMPILE_FLAGS
"/D ZMQ_STATIC"
OUTPUT_NAME
"libzmq"
)
else
()
add_library
(
libzmq SHARED
${
sources
}
${
public_headers
}
${
html-docs
}
${
readme-docs
}
${
zmq-pkgconfig
}
)
if
(
ZMQ_BUILD_FRAMEWORK
)
...
...
@@ -574,13 +581,13 @@ endif()
# installer
if
(
MSVC
)
install
(
TARGETS libzmq
install
(
TARGETS libzmq
libzmq-static
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
PUBLIC_HEADER DESTINATION include
COMPONENT SDK
)
if
(
CMAKE_BUILD_TYPE STREQUAL
"Debug"
)
install
(
TARGETS libzmq
install
(
TARGETS libzmq
libzmq-static
RUNTIME DESTINATION bin
PUBLIC_HEADER DESTINATION include
COMPONENT SDK
)
...
...
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