forked from radiotap/radiotap-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
24 lines (18 loc) · 787 Bytes
/
CMakeLists.txt
File metadata and controls
24 lines (18 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
cmake_minimum_required(VERSION 2.6)
project(radiotap)
add_definitions("-D_BSD_SOURCE -DRADIOTAP_SUPPORT_OVERRIDES")
add_library(radiotap SHARED radiotap.c)
set_target_properties(radiotap PROPERTIES
COMPILE_FLAGS "-Wall -Wextra")
install(TARGETS radiotap DESTINATION lib)
install(FILES radiotap.h radiotap_iter.h DESTINATION include)
add_executable(parse parse.c)
set_target_properties(parse PROPERTIES
COMPILE_FLAGS "-Wall -Wextra")
target_link_libraries(parse radiotap)
add_custom_target(radiotap_check ALL
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/check/check.sh ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/check/*
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/check/
COMMENT "Check examples")
add_dependencies(radiotap_check parse)