-
Notifications
You must be signed in to change notification settings - Fork 14
/
CMakeLists.txt
52 lines (44 loc) · 1.49 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
cmake_minimum_required(VERSION 3.10)
project(v2verifier)
set(CMAKE_CXX_STANDARD 17)
set(V2V_LIBRARIES v2xmessage logger)
if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
##------------------------------------------------------------
## macOS stuff
set(CMAKE_OSX_ARCHITECTURES arm64)
set(OPENSSL_ROOT_DIR /opt/homebrew/Cellar/openssl@3/3.2.1)
# set(Boost_NO_SYSTEM_PATHS TRUE)
# set(BOOST_ROOT /opt/homebrew/Cellar/boost/1.84.0)
# set(Boost_LIBRARY_DIRS "${BOOST_ROOT}/lib/")
##------------------------------------------------------------
endif()
find_package(OpenSSL REQUIRED)
add_subdirectory(logger)
add_subdirectory(v2xmessage)
add_subdirectory(v2verifier-app)
#
#set(SOURCE_FILES
# src/main.cpp
# src/Vehicle.cpp
# src/v2vcrypto.cpp
# src/bsm.cpp
# src/threading.cpp)
#
#
#find_package(Boost REQUIRED)
#
#add_executable(${PROJECT_NAME} ${SOURCE_FILES})
#
#target_link_libraries(${PROJECT_NAME} OpenSSL::Crypto)
#
#if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
# ##------------------------------------------------------------
# ## macOS stuff
# target_link_libraries(${PROJECT_NAME} Boost::boost)
# target_include_directories(${PROJECT_NAME} PRIVATE ${BOOST_INCLUDE_DIRS})
# target_include_directories(${PROJECT_NAME} PUBLIC ${OPENSSL_INCLUDE_DIR})
# ##------------------------------------------------------------
#endif()
#
#target_include_directories(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/include)
#set_property(TARGET v2verifier PROPERTY CXX_STANDARD 20)