1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-05 15:34:57 -04:00

cmake: full refactor to remove qmake and use cmake on all platforms

This commit is contained in:
Davide Gerhard
2019-05-01 11:54:58 +02:00
parent 98e4b77dd9
commit dcfb7f6c97
171 changed files with 2126 additions and 5841 deletions
+3 -21
View File
@@ -13,39 +13,21 @@ set(hackrfdevice_HEADERS
devicehackrfshared.h
)
if (BUILD_DEBIAN)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${LIBHACKRFSRC}
)
else (BUILD_DEBIAN)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${LIBHACKRF_INCLUDE_DIR}
)
endif (BUILD_DEBIAN)
#add_definitions(${QT_DEFINITIONS})
#add_definitions(-DQT_SHARED)
add_library(hackrfdevice SHARED
${hackrfdevice_SOURCES}
)
set_target_properties(hackrfdevice PROPERTIES DEFINE_SYMBOL "devices_EXPORTS")
set_target_properties(hackrfdevice
PROPERTIES DEFINE_SYMBOL "devices_EXPORTS")
if (BUILD_DEBIAN)
target_link_libraries(hackrfdevice
hackrf
sdrbase
)
else (BUILD_DEBIAN)
target_link_libraries(hackrfdevice
${LIBHACKRF_LIBRARIES}
sdrbase
)
endif (BUILD_DEBIAN)
install(TARGETS hackrfdevice DESTINATION lib)
install(TARGETS hackrfdevice DESTINATION ${INSTALL_LIB_DIR})