mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-12-25 10:28:28 +01:00
commit
c109de3949
@ -25,12 +25,17 @@ if (MSVC)
|
||||
add_custom_target(do_always_volk ALL xcopy /s \"C:/Program Files/PothosSDR/bin\\volk.dll\" \"$<TARGET_FILE_DIR:sdrpp>\" /Y)
|
||||
endif (MSVC)
|
||||
|
||||
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
|
||||
add_custom_target(do_always ALL cp \"$<TARGET_FILE_DIR:sdrpp_core>/libsdrpp_core.so\" \"$<TARGET_FILE_DIR:sdrpp>\")
|
||||
endif ()
|
||||
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
add_custom_target(do_always ALL cp \"$<TARGET_FILE_DIR:sdrpp_core>/sdrpp_core.so\" \"$<TARGET_FILE_DIR:sdrpp>\")
|
||||
add_custom_target(do_always ALL cp \"$<TARGET_FILE_DIR:sdrpp_core>/libsdrpp_core.so\" \"$<TARGET_FILE_DIR:sdrpp>\")
|
||||
endif ()
|
||||
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
add_custom_target(do_always ALL cp \"$<TARGET_FILE_DIR:sdrpp_core>/sdrpp_core.dylib\" \"$<TARGET_FILE_DIR:sdrpp>\")
|
||||
add_custom_target(do_always ALL cp \"$<TARGET_FILE_DIR:sdrpp_core>/libsdrpp_core.dylib\" \"$<TARGET_FILE_DIR:sdrpp>\")
|
||||
endif ()
|
||||
|
||||
# cmake .. "-DCMAKE_TOOLCHAIN_FILE=C:/Users/Alex/vcpkg/scripts/buildsystems/vcpkg.cmake" -G "Visual Studio 15 2017 Win64"
|
||||
|
@ -15,7 +15,6 @@ file(GLOB_RECURSE SRC "src/*.cpp" "src/*.c")
|
||||
|
||||
# Add code to dyn lib
|
||||
add_library(sdrpp_core SHARED ${SRC})
|
||||
set_target_properties(sdrpp_core PROPERTIES PREFIX "")
|
||||
|
||||
# Include core headers
|
||||
target_include_directories(sdrpp_core PUBLIC "src/")
|
||||
|
@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
cp build/modules/*/*.so root/modules
|
||||
cp build/*/*.so root/modules
|
||||
|
24
readme.md
24
readme.md
@ -99,6 +99,28 @@ cmake ..
|
||||
cmake --build . --config Release
|
||||
```
|
||||
|
||||
# Building on OpenBSD
|
||||
## Install requirements
|
||||
```
|
||||
pkg_add fftw3-float glew glfw portaudio-svn
|
||||
|
||||
# install volk and SoapySDR manually
|
||||
```
|
||||
|
||||
## The build
|
||||
```
|
||||
mkdir build
|
||||
cd build
|
||||
cmake --clang ..
|
||||
make
|
||||
cd ..
|
||||
./prepare_root.sh
|
||||
cp -Rf root root_dev # if are in dev
|
||||
mv root/modules ./
|
||||
```
|
||||
|
||||
Run SDRPP with `build/sdrpp`.
|
||||
=======
|
||||
## Modify root_dev/modules_list.json
|
||||
If the content is different than the following, change it.
|
||||
```
|
||||
@ -133,4 +155,4 @@ I will soon publish a contributing.md listing the code style to use.
|
||||
* [Dear ImGui (ocornut)](https://github.com/ocornut/imgui)
|
||||
* [spdlog (gabime)](https://github.com/gabime/spdlog)
|
||||
* [json (nlohmann)](https://github.com/nlohmann/json)
|
||||
* [portaudio (PortAudio community)](http://www.portaudio.com/)
|
||||
* [portaudio (PortAudio community)](http://www.portaudio.com/)
|
||||
|
Loading…
Reference in New Issue
Block a user