-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
74 lines (58 loc) · 2.51 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
cmake_minimum_required(VERSION 2.4.5 FATAL_ERROR)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 OLD)
endif(COMMAND cmake_policy)
project(zmq)
# build options
option(BUILD_SHARED_LIBS "Build Shared Libs?" ON)
option(WITH_C "Build C language binding?" OFF)
option(WITH_PERF "Build performance tests?" OFF)
option(WITH_SCTP "Build with SCTP protocol?" OFF)
option(WITH_OPENPGM "Build with OpenPGM protocol?" OFF)
# By default gettime is used for time measure
set (time_measure "gettime")
# Including zmq custom cmake modules
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
# load zmq cmake macros
include(zmq_macros)
# zmq platform checks
include(zmq_platform_checks)
# where to install zmq software
set(ZMQ_INSTALL_BINARIES "bin")
set(ZMQ_INSTALL_LIBRARIES "lib")
set(ZMQ_INSTALL_INCLUDES "include")
# Descend zmq build tree and compile everything
set(zmq_subdirs libzmq zmq_server libczmq perf)
foreach(subdir ${zmq_subdirs})
add_subdirectory("${subdir}")
endforeach(subdir ${zmq_subdirs})
MESSAGE(STATUS "")
MESSAGE(STATUS "")
MESSAGE(STATUS " ********************************************************" )
MESSAGE(STATUS " 0MQ")
MESSAGE(STATUS " ********************************************************" )
MESSAGE(STATUS " This software is distributed under the terms and " )
MESSAGE(STATUS " conditions of the LESSER GNU GENERAL PUBLIC LICENSE." )
MESSAGE(STATUS " See the file COPYING and COPYING.LESSER for the full" )
MESSAGE(STATUS " license text. " )
MESSAGE(STATUS " ********************************************************" )
MESSAGE(STATUS "")
MESSAGE(STATUS " 0MQ install dir: ${CMAKE_INSTALL_PREFIX}" )
MESSAGE(STATUS "")
if(WITH_ESTIMATOR)
MESSAGE(STATUS " Utilities:" )
MESSAGE(STATUS " cpu frequency estimator: ${cpu_estimator} " )
MESSAGE(STATUS "")
endif(WITH_ESTIMATOR)
MESSAGE(STATUS " Addons:" )
MESSAGE(STATUS " performance tests ........ ${WITH_PERF} (${time_measure})" )
MESSAGE(STATUS " camera example ........... ${WITH_CAMERA}" )
MESSAGE(STATUS " stock exchange example ... ${WITH_EXCHANGE}" )
MESSAGE(STATUS " chatroom example ......... ${WITH_CHAT}" )
MESSAGE(STATUS "")
MESSAGE(STATUS " C language binding ......... ${WITH_C}" )
MESSAGE(STATUS " Python language binding .... ${WITH_PYTHON}" )
MESSAGE(STATUS " Java language binding ...... ${WITH_JAVA}" )
MESSAGE(STATUS " SCTP capable ............... ${WITH_SCTP}" )
MESSAGE(STATUS " OpenPGM capable ............ ${WITH_OPENPGM}" )
MESSAGE(STATUS "")