mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-06-25 12:07:49 +02:00
new cmake stuff
This commit is contained in:
@ -3,19 +3,6 @@ project(atv_decoder)
|
||||
|
||||
file(GLOB_RECURSE SRC "src/*.cpp" "src/*.c")
|
||||
|
||||
include_directories("src/")
|
||||
include(${SDRPP_MODULE_CMAKE})
|
||||
|
||||
add_library(atv_decoder SHARED ${SRC})
|
||||
target_link_libraries(atv_decoder PRIVATE sdrpp_core)
|
||||
set_target_properties(atv_decoder PROPERTIES PREFIX "")
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(atv_decoder PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(atv_decoder PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
else ()
|
||||
target_compile_options(atv_decoder PRIVATE -O3 -std=c++17)
|
||||
endif ()
|
||||
|
||||
# Install directives
|
||||
install(TARGETS atv_decoder DESTINATION lib/sdrpp/plugins)
|
||||
target_include_directories(atv_decoder PRIVATE "src/")
|
@ -3,19 +3,6 @@ project(falcon9_decoder)
|
||||
|
||||
file(GLOB_RECURSE SRC "src/*.cpp")
|
||||
|
||||
add_library(falcon9_decoder SHARED ${SRC})
|
||||
target_link_libraries(falcon9_decoder PRIVATE sdrpp_core)
|
||||
set_target_properties(falcon9_decoder PROPERTIES PREFIX "")
|
||||
include(${SDRPP_MODULE_CMAKE})
|
||||
|
||||
target_include_directories(falcon9_decoder PRIVATE "src/")
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(falcon9_decoder PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(falcon9_decoder PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
else ()
|
||||
target_compile_options(falcon9_decoder PRIVATE -O3 -std=c++17)
|
||||
endif ()
|
||||
|
||||
# Install directives
|
||||
install(TARGETS falcon9_decoder DESTINATION lib/sdrpp/plugins)
|
||||
target_include_directories(falcon9_decoder PRIVATE "src/")
|
@ -3,19 +3,6 @@ project(kg_sstv_decoder)
|
||||
|
||||
file(GLOB_RECURSE SRC "src/*.cpp" "src/*.c")
|
||||
|
||||
add_library(kg_sstv_decoder SHARED ${SRC})
|
||||
target_link_libraries(kg_sstv_decoder PRIVATE sdrpp_core)
|
||||
set_target_properties(kg_sstv_decoder PROPERTIES PREFIX "")
|
||||
include(${SDRPP_MODULE_CMAKE})
|
||||
|
||||
target_include_directories(kg_sstv_decoder PRIVATE "src/")
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(kg_sstv_decoder PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(kg_sstv_decoder PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
else ()
|
||||
target_compile_options(kg_sstv_decoder PRIVATE -O3 -std=c++17)
|
||||
endif ()
|
||||
|
||||
# Install directives
|
||||
install(TARGETS kg_sstv_decoder DESTINATION lib/sdrpp/plugins)
|
||||
target_include_directories(kg_sstv_decoder PRIVATE "src/")
|
@ -3,20 +3,10 @@ project(m17_decoder)
|
||||
|
||||
file(GLOB_RECURSE SRC "src/*.cpp" "src/*.c")
|
||||
|
||||
add_library(m17_decoder SHARED ${SRC})
|
||||
target_link_libraries(m17_decoder PRIVATE sdrpp_core)
|
||||
set_target_properties(m17_decoder PROPERTIES PREFIX "")
|
||||
include(${SDRPP_MODULE_CMAKE})
|
||||
|
||||
target_include_directories(m17_decoder PRIVATE "src/")
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(m17_decoder PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(m17_decoder PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
else ()
|
||||
target_compile_options(m17_decoder PRIVATE -O3 -std=c++17)
|
||||
endif ()
|
||||
|
||||
if (MSVC)
|
||||
# Lib path
|
||||
target_include_directories(m17_decoder PRIVATE "C:/Program Files/codec2/include/")
|
||||
@ -45,10 +35,4 @@ else ()
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
target_include_directories(m17_decoder PRIVATE "/usr/local/include")
|
||||
endif()
|
||||
|
||||
endif ()
|
||||
|
||||
|
||||
|
||||
# Install directives
|
||||
install(TARGETS m17_decoder DESTINATION lib/sdrpp/plugins)
|
||||
endif ()
|
@ -3,19 +3,6 @@ project(meteor_demodulator)
|
||||
|
||||
file(GLOB_RECURSE SRC "src/*.cpp" "src/*.c")
|
||||
|
||||
include_directories("src/")
|
||||
include(${SDRPP_MODULE_CMAKE})
|
||||
|
||||
add_library(meteor_demodulator SHARED ${SRC})
|
||||
target_link_libraries(meteor_demodulator PRIVATE sdrpp_core)
|
||||
set_target_properties(meteor_demodulator PROPERTIES PREFIX "")
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(meteor_demodulator PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(meteor_demodulator PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
else ()
|
||||
target_compile_options(meteor_demodulator PRIVATE -O3 -std=c++17)
|
||||
endif ()
|
||||
|
||||
# Install directives
|
||||
install(TARGETS meteor_demodulator DESTINATION lib/sdrpp/plugins)
|
||||
target_include_directories(meteor_demodulator PRIVATE "src/")
|
@ -3,19 +3,6 @@ project(radio)
|
||||
|
||||
file(GLOB_RECURSE SRC "src/*.cpp")
|
||||
|
||||
add_library(radio SHARED ${SRC})
|
||||
target_link_libraries(radio PRIVATE sdrpp_core)
|
||||
set_target_properties(radio PROPERTIES PREFIX "")
|
||||
include(${SDRPP_MODULE_CMAKE})
|
||||
|
||||
target_include_directories(radio PRIVATE "src/")
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(radio PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(radio PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
else ()
|
||||
target_compile_options(radio PRIVATE -O3 -std=c++17)
|
||||
endif ()
|
||||
|
||||
# Install directives
|
||||
install(TARGETS radio DESTINATION lib/sdrpp/plugins)
|
||||
target_include_directories(radio PRIVATE "src/")
|
@ -3,19 +3,6 @@ project(weather_sat_decoder)
|
||||
|
||||
file(GLOB_RECURSE SRC "src/*.cpp" "src/*.c")
|
||||
|
||||
add_library(weather_sat_decoder SHARED ${SRC})
|
||||
target_link_libraries(weather_sat_decoder PRIVATE sdrpp_core)
|
||||
set_target_properties(weather_sat_decoder PROPERTIES PREFIX "")
|
||||
include(${SDRPP_MODULE_CMAKE})
|
||||
|
||||
target_include_directories(weather_sat_decoder PRIVATE "src/")
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(weather_sat_decoder PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
target_compile_options(weather_sat_decoder PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
|
||||
else ()
|
||||
target_compile_options(weather_sat_decoder PRIVATE -O3 -std=c++17)
|
||||
endif ()
|
||||
|
||||
# Install directives
|
||||
install(TARGETS weather_sat_decoder DESTINATION lib/sdrpp/plugins)
|
||||
target_include_directories(weather_sat_decoder PRIVATE "src/")
|
Reference in New Issue
Block a user