-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
47 lines (37 loc) · 1.18 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
# Authors:
# - Christoph Pilz ([email protected])
#
cmake_minimum_required(VERSION 3.16)
# set the project name
project(cpp_receiver VERSION 0.1 DESCRIPTION "cpp receiver for the V2X Routing Platform")
# specify the C++ standard
set(CMAKE_CXX_STANDARD 20)
# add targets
add_subdirectory(vcits)
# add include directories
include_directories(.)
include_directories(vcits/asn1c) #vcits lib headers reference this
# add the executable
add_executable(cppReceiver main.cpp)
# set target properties - CMake does not know without source files
set_target_properties(cppReceiver
PROPERTIES
COMPILE_FLAGS "-Wall -Wextra -fno-strict-aliasing -pipe -pthread -lrt -lm -lzmq"
LINK_FLAGS "-Wall -Wextra -fno-strict-aliasing -pipe -pthread -lrt -lm -lzmq"
VERSION ${PROJECT_VERSION}
)
# ZeroMQ configuration
include(FindZeroMQ.cmake)
#message("ZeroMQ_INCLUDE_DIR: ${ZEROMQ_INCLUDE_DIR}")
#message("ZeroMQ_LIBRARY: ${ZEROMQ_LIBRARIES}")
# specify header locations
target_include_directories(cppReceiver
PUBLIC
${ZEROMQ_INCLUDE_DIR}
)
# link libraries
target_link_libraries(cppReceiver
PUBLIC
vcits
${ZEROMQ_LIBRARIES}
)