mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-15 15:02:52 +01:00
21 lines
731 B
CMake
21 lines
731 B
CMake
cmake_minimum_required(VERSION 3.13)
|
|
project(fobossdr_source)
|
|
|
|
file(GLOB SRC "src/*.cpp")
|
|
|
|
include(${SDRPP_MODULE_CMAKE})
|
|
|
|
if (MSVC)
|
|
# Lib path
|
|
target_link_directories(fobossdr_source PRIVATE "C:/Program Files/RigExpert/Fobos/lib/")
|
|
target_include_directories(fobossdr_source PRIVATE "C:/Program Files/RigExpert/Fobos/include/")
|
|
target_link_libraries(fobossdr_source PRIVATE fobos)
|
|
else (MSVC)
|
|
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})
|
|
endif () |