mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 01:55:48 -05:00
LimeSDR support: built-in LimeSuite for Debian - added cmake module to find sqlite3
This commit is contained in:
parent
40f2d0e5ec
commit
51147c50e7
@ -1,6 +1,6 @@
|
||||
# Find Lime Suite
|
||||
|
||||
if (!LIMESUITE_INCLUDE_DIR)
|
||||
if (NOT LIMESUITE_INCLUDE_DIR)
|
||||
FIND_PATH (LIMESUITE_INCLUDE_DIR
|
||||
NAMES lime/LimeSuite.h
|
||||
PATHS
|
||||
@ -9,7 +9,7 @@ if (!LIMESUITE_INCLUDE_DIR)
|
||||
)
|
||||
endif()
|
||||
|
||||
if (!LIMESUITE_LIBRARY)
|
||||
if (NOT LIMESUITE_LIBRARY)
|
||||
FIND_LIBRARY (LIMESUITE_LIBRARY
|
||||
NAMES LimeSuite
|
||||
HINTS ${CMAKE_INSTALL_PREFIX}/lib
|
||||
|
27
cmake/Modules/FindSQLite3.cmake
Normal file
27
cmake/Modules/FindSQLite3.cmake
Normal file
@ -0,0 +1,27 @@
|
||||
if (NOT SQLITE3_FOUND)
|
||||
find_path(SQLITE3_INCLUDE_DIRS NAMES sqlite3.h
|
||||
PATHS
|
||||
${SQLITE3_PKG_INCLUDE_DIRS}
|
||||
/usr/include
|
||||
/usr/local/include
|
||||
)
|
||||
|
||||
find_library(SQLITE3_LIBRARIES NAMES sqlite3
|
||||
PATHS
|
||||
${SQLITE3_PKG_LIBRARY_DIRS}
|
||||
/usr/lib
|
||||
/usr/local/lib
|
||||
/usr/lib/x86_64-linux-gnu
|
||||
)
|
||||
|
||||
if (SQLITE3_INCLUDE_DIRS AND SQLITE3_LIBRARIES)
|
||||
set(SQLITE3_FOUND TRUE CACHE INTERNAL "sqlite3 found")
|
||||
message(STATUS "Found sqlite3: ${SQLITE3_INCLUDE_DIRS}, ${SQLITE3_LIBRARIES}")
|
||||
else (SQLITE3_INCLUDE_DIRS AND SQLITE3_LIBRARIES)
|
||||
set(SQLITE3_FOUND FALSE CACHE INTERNAL "sqlite3 found")
|
||||
message(STATUS "sqlite3 not found.")
|
||||
endif (SQLITE3_INCLUDE_DIRS AND SQLITE3_LIBRARIES)
|
||||
|
||||
MARK_AS_ADVANCED(SQLITE3_INCLUDE_DIRS SQLITE3_LIBRARIES)
|
||||
|
||||
endif (NOT SQLITE3_FOUND)
|
@ -1,6 +1,7 @@
|
||||
project(limesuite)
|
||||
|
||||
find_package(LibUSB)
|
||||
find_package(SQLite3)
|
||||
|
||||
set(limesuite_SOURCES
|
||||
${LIBLIMESUITESRC}/src/ADF4002/ADF4002.cpp
|
||||
@ -113,6 +114,7 @@ add_library(limesuite SHARED
|
||||
|
||||
target_link_libraries(limesuite
|
||||
${LIBUSB_LIBRARIES}
|
||||
${SQLITE3_LIBRARIES}
|
||||
)
|
||||
|
||||
install(TARGETS limesuite DESTINATION lib)
|
||||
|
Loading…
Reference in New Issue
Block a user