2024-09-11 21:57:12 +02:00
|
|
|
cmake_minimum_required(VERSION 3.13)
|
|
|
|
project(fobossdr_source)
|
|
|
|
|
|
|
|
file(GLOB SRC "src/*.cpp")
|
|
|
|
|
|
|
|
include(${SDRPP_MODULE_CMAKE})
|
|
|
|
|
|
|
|
if (MSVC)
|
|
|
|
# Lib path
|
2024-09-14 14:47:10 +02:00
|
|
|
target_link_directories(fobossdr_source PRIVATE "C:/Program Files/RigExpert/Fobos/lib/")
|
|
|
|
target_include_directories(fobossdr_source PRIVATE "C:/Program Files/RigExpert/Fobos/include/")
|
2024-09-11 21:57:12 +02:00
|
|
|
target_link_libraries(fobossdr_source PRIVATE fobos)
|
|
|
|
else (MSVC)
|
2024-09-14 00:18:31 +02:00
|
|
|
find_package(PkgConfig)
|
|
|
|
|
|
|
|
pkg_check_modules(LIBHACKRF REQUIRED libfobos)
|
|
|
|
|
|
|
|
target_include_directories(fobossdr_source PRIVATE ${LIBFOBOS_INCLUDE_DIRS})
|
|
|
|
target_link_directories(fobossdr_source PRIVATE ${LIBFOBOS_LIBRARY_DIRS})
|
|
|
|
target_link_libraries(fobossdr_source PRIVATE ${LIBFOBOS_LIBRARIES})
|
2024-09-11 21:57:12 +02:00
|
|
|
endif ()
|