mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-06 10:47:34 +01:00
20 lines
738 B
CMake
20 lines
738 B
CMake
cmake_minimum_required(VERSION 3.13)
|
|
project(sdrpp_core)
|
|
|
|
add_subdirectory("core")
|
|
add_subdirectory("radio")
|
|
# Add back recorder when module new system is ready
|
|
#add_subdirectory("recorder")
|
|
add_subdirectory("demo")
|
|
|
|
add_executable(sdrpp "src/main.cpp" "win32/resources.rc")
|
|
target_link_libraries(sdrpp PRIVATE sdrpp_core)
|
|
|
|
# Copy dynamic libs over
|
|
if (MSVC)
|
|
add_custom_target(do_always ALL xcopy /s \"$<TARGET_FILE_DIR:sdrpp_core>\\*.dll\" \"$<TARGET_FILE_DIR:sdrpp>\" /Y)
|
|
else()
|
|
add_custom_target(do_always ALL cp \"$<TARGET_FILE_DIR:sdrpp_core>/sdrpp_core.so\" \"$<TARGET_FILE_DIR:sdrpp>\")
|
|
endif (MSVC)
|
|
|
|
# cmake .. "-DCMAKE_TOOLCHAIN_FILE=C:/Users/Alex/vcpkg/scripts/buildsystems/vcpkg.cmake" -G "Visual Studio 15 2017 Win64" |