forked from SysSec-KAIST/LTESniffer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
30 lines (25 loc) · 1005 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
add_subdirectory(include)
add_subdirectory(src)
set(INSTALL_BUNDLE)
add_executable(LTESniffer LTESniffer.cc)
target_link_libraries(LTESniffer DL_Sniffer_lib falcon_common falcon_phy falcon_util falcon_prof)
target_compile_options(LTESniffer PUBLIC "-std=c++11")
list(APPEND INSTALL_BUNDLE LTESniffer)
# nested install targets are not supported by old Cmake on Ubuntu 18
#list (APPEND INSTALL_BUNDLE
# falcon_capture_probe
# falcon_eye)
install(
TARGETS ${INSTALL_BUNDLE}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
message(STATUS "Install Bundle: ${INSTALL_BUNDLE}")
#Copy wrapper scripts into build dir
file(GLOB SCRIPTS "*.sh" "*.py")
message(STATUS "Copy scripts: ${SCRIPTS}")
foreach(SCRIPTFILE ${SCRIPTS})
get_filename_component(FILENAME ${SCRIPTFILE} NAME)
message(STATUS "Copy file: ${FILENAME}")
configure_file("${FILENAME}" "${FILENAME}" COPYONLY)
endforeach(SCRIPTFILE)