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
c53cf0d2
Commit
c53cf0d2
authored
Oct 12, 2012
by
Steve-o
Committed by
Steven McCoy
Oct 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor refactor of CMake build script.
parent
000d1a5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
6 deletions
+22
-6
CMakeLists.txt
CMakeLists.txt
+22
-6
No files found.
CMakeLists.txt
View file @
c53cf0d2
# CMake build script for MQ on Windows
# CMake build script for
Zero
MQ on Windows
cmake_minimum_required
(
VERSION 2.8
)
project
(
ZeroMQ
)
# TODO: Extract from include/zmq.h
set
(
ZMQ_VERSION_MAJOR
"3"
)
set
(
ZMQ_VERSION_MINOR
"2"
)
set
(
ZMQ_VERSION_PATCH
"0"
)
# WARNING: Windows Python will override Cygwin yet not work with Asciidoc.
#find_package (PythonInterp REQUIRED)
# Workaround, manually set Python location
set
(
PYTHON_EXECUTABLE c:/cygwin/bin/python2.6.exe
)
set
(
OPENPGM_ROOT /libpgm/libpgm-5.1.118-1~dfsg/openpgm/pgm
)
# TODO: Replace with FindAsciidoc.cmake
set
(
ASCIIDOC_EXECUTABLE c:/cygwin/bin/asciidoc
)
option
(
WITH_DOC
"Build Reference Guide documentation (requires DocBook)"
OFF
)
...
...
@@ -44,7 +53,9 @@ set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
add_definitions
(
-DWIN32
-DDLL_EXPORT
# NB: May require tweaking for highly connected applications.
-DFD_SETSIZE=1024
-D_CRT_SECURE_NO_WARNINGS
)
#-----------------------------------------------------------------------------
...
...
@@ -163,10 +174,15 @@ link_directories(
#-----------------------------------------------------------------------------
# source generators
foreach
(
source
${
cxx-sources
}
${
rc-sources
}
)
foreach
(
source
${
cxx-sources
}
)
list
(
APPEND sources
${
CMAKE_SOURCE_DIR
}
/src/
${
source
}
)
endforeach
()
foreach
(
source
${
rc-sources
}
)
list
(
APPEND sources
${
CMAKE_BINARY_DIR
}
/
${
source
}
)
configure_file
(
${
CMAKE_SOURCE_DIR
}
/src/
${
source
}
.in
${
CMAKE_BINARY_DIR
}
/
${
source
}
)
endforeach
()
add_custom_command
(
OUTPUT
${
CMAKE_BINARY_DIR
}
/platform.hpp
COMMAND
${
CMAKE_COMMAND
}
...
...
@@ -283,16 +299,16 @@ set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}")
set
(
CPACK_PACKAGE_DESCRIPTION_SUMMARY
"ZeroMQ lightweight messaging kernel"
)
set
(
CPACK_PACKAGE_VENDOR
"Miru"
)
set
(
CPACK_NSIS_CONTACT
"Steven McCoy <Steven.McCoy@miru.hk>"
)
# set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE
_DIR}/COPYING.txt")
set
(
CPACK_RESOURCE_FILE_LICENSE
"
${
CMAKE_BINARY
_DIR
}
/COPYING.txt"
)
# There is a bug in NSI that does not handle full unix paths properly. Make
# sure there is at least one set of four (4) backlasshes.
set
(
CPACK_NSIS_MUI_ICON
"
${
CMAKE_SOURCE_DIR
}
\\\\
installer.ico"
)
set
(
CPACK_NSIS_MUI_UNIICON
"
${
CMAKE_SOURCE_DIR
}
\\\\
installer.ico"
)
set
(
CPACK_PACKAGE_ICON
"
${
CMAKE_SOURCE_DIR
}
\\\\
branding.bmp"
)
set
(
CPACK_NSIS_COMPRESSOR
"/SOLID lzma"
)
set
(
CPACK_PACKAGE_VERSION_MAJOR
"
3
"
)
set
(
CPACK_PACKAGE_VERSION_MINOR
"
2
"
)
set
(
CPACK_PACKAGE_VERSION_PATCH
"
0
"
)
set
(
CPACK_PACKAGE_VERSION_MAJOR
"
${
ZMQ_VERSION_MAJOR
}
"
)
set
(
CPACK_PACKAGE_VERSION_MINOR
"
${
ZMQ_VERSION_MINOR
}
"
)
set
(
CPACK_PACKAGE_VERSION_PATCH
"
${
ZMQ_VERSION_PATCH
}
"
)
include
(
CPack
)
...
...
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