burst-sender/CMakeLists.txt

23 lines
698 B
CMake

cmake_minimum_required(VERSION 3.0.0)
project(burstelchen VERSION 0.1.0)
set(CMAKE_CXX_STANDARD 11)
find_package(PkgConfig)
pkg_search_module(uhd REQUIRED uhd)
link_directories(${uhd_LIBRARY_DIRS})
add_compile_options(
"-Wall" "-Wpedantic" "-Wextra" "-fexceptions"
"$<$<CONFIG:DEBUG>:-O0;-g3;-ggdb;-fstandalone-debug;-fsanitize=address,undefined>"
)
add_link_options("$<$<CONFIG:DEBUG>:-fsanitize=address,undefined>")
add_executable(burstelchen burstelchen.cpp)
target_include_directories(burstelchen SYSTEM PUBLIC ${uhd_INCLUDE_DIRS})
target_link_libraries(burstelchen ${uhd_LIBRARIES})
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)