-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
80 lines (68 loc) · 1.78 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
75
76
77
78
79
80
cmake_minimum_required(VERSION 2.8.6)
project(zyre_tools)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include_directories(
include
)
########################################################################
# LIBZMQ
########################################################################
find_package(libzmq REQUIRED)
IF (LIBZMQ_FOUND)
include_directories(${LIBZMQ_INCLUDE_DIRS})
list(APPEND LIBS ${LIBZMQ_LIBRARIES})
ELSE (LIBZMQ_FOUND)
message( FATAL_ERROR "libzmq not found." )
ENDIF (LIBZMQ_FOUND)
########################################################################
# CZMQ
########################################################################
find_package(czmq REQUIRED)
IF (CZMQ_FOUND)
include_directories(${CZMQ_INCLUDE_DIRS})
list(APPEND LIBS ${CZMQ_LIBRARIES})
ELSE (CZMQ_FOUND)
message( FATAL_ERROR "czmq not found." )
ENDIF (CZMQ_FOUND)
########################################################################
# Zyre
########################################################################
find_package(zyre REQUIRED)
IF (ZYRE_FOUND)
include_directories(${ZYRE_INCLUDE_DIRS})
list(APPEND LIBS ${ZYRE_LIBRARIES})
ELSE (ZYRE_FOUND)
message( FATAL_ERROR "zyre not found." )
ENDIF (ZYRE_FOUND)
add_executable(zyrenode
src/zyrenode.cpp
src/helper_functions.cpp
)
target_link_libraries(zyrenode
${LIBS}
)
add_executable(zyregroup
src/zyregroup.cpp
src/helper_functions.cpp
)
target_link_libraries(zyregroup
${LIBS}
)
add_executable(zyrecli
src/zyre_tools.cpp
src/helper_functions.cpp
)
target_link_libraries(zyrecli
${LIBS}
readline
)
install(TARGETS zyrenode
DESTINATION bin
)
install(TARGETS zyregroup
DESTINATION bin
)
install(TARGETS zyrecli
DESTINATION bin
)