-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
30 lines (24 loc) · 906 Bytes
/
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
cmake_minimum_required(VERSION 3.6)
project(mac80211_hwsim_mgmt)
set(CMAKE_CXX_STANDARD 11)
# find libraries
include(${CMAKE_SOURCE_DIR}/cmake/FindNetLink.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/FindLibEvent.cmake)
find_package(Threads)
# include libnl directories
include_directories(${NL_INCLUDE_DIRS})
# set source files
set(SOURCE_FILES
hwsim_mgmt/hwsim_mgmt_cli.c
hwsim_mgmt/hwsim_mgmt_cli.h
hwsim_mgmt/hwsim_mgmt_func.c
hwsim_mgmt/hwsim_mgmt_func.h
hwsim_mgmt/hwsim_mgmt_event.c
hwsim_mgmt/hwsim_mgmt_event.h)
# add executables
add_executable(mac80211_hwsim_mgmt ${SOURCE_FILES})
# link required libraries
target_link_libraries(mac80211_hwsim_mgmt ${M_LIB})
target_link_libraries(mac80211_hwsim_mgmt ${NL_LIBRARIES})
target_link_libraries(mac80211_hwsim_mgmt ${LIBEVENT_LIB})
target_link_libraries(mac80211_hwsim_mgmt ${CMAKE_THREAD_LIBS_INIT})