mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Move FTDI and Grantlee configuration out of CMakeLists.txt
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
This commit is contained in:
parent
cef86356f5
commit
f60e86b19c
4 changed files with 30 additions and 25 deletions
|
|
@ -89,6 +89,9 @@ include(cmake/Modules/pkgconfig_helper.cmake)
|
|||
include(cmake/Modules/HandleFindGit2.cmake)
|
||||
include(cmake/Modules/HandleFindLibDiveComputer.cmake)
|
||||
include(cmake/Modules/HandleFindMarble.cmake)
|
||||
include(cmake/Modules/HandleFindGrantlee.cmake)
|
||||
include(cmake/Modules/HandleFtdiSupport.cmake)
|
||||
|
||||
pkg_config_library(LIBXML libxml-2.0 REQUIRED)
|
||||
pkg_config_library(LIBSQLITE3 sqlite3 REQUIRED)
|
||||
pkg_config_library(LIBXSLT libxslt REQUIRED)
|
||||
|
|
@ -100,31 +103,9 @@ if(SMARTTRAK_IMPORT)
|
|||
pkg_config_library(LIBMDB libmdb REQUIRED)
|
||||
endif()
|
||||
|
||||
if(FTDISUPPORT)
|
||||
message(STATUS "building with libftdi support")
|
||||
pkg_config_library(LIBFTDI libftdi QUIET)
|
||||
if (NOT LIBFTDI_FOUND)
|
||||
pkg_config_library(LIBFTDI libftdi1 REQUIRED)
|
||||
endif()
|
||||
add_definitions(-DSERIAL_FTDI)
|
||||
endif()
|
||||
|
||||
# setup Grantlee
|
||||
|
||||
if(NO_PRINTING)
|
||||
message(STATUS "building without printing support")
|
||||
add_definitions(-DNO_PRINTING)
|
||||
set(GRANTLEE_LIBRARIES "")
|
||||
else()
|
||||
if(LIBGRANTLEE_FROM_PKGCONFIG)
|
||||
pkg_config_library(GRANTLEE libgrantlee REQUIRED)
|
||||
set(GRANTLEE_LIBRARIES "")
|
||||
else()
|
||||
find_package(Grantlee5 REQUIRED)
|
||||
set(GRANTLEE_LIBRARIES Grantlee5::Templates)
|
||||
endif()
|
||||
set(PRINTING_PKG PrintSupport)
|
||||
set(PRINTING_LIB Qt5::PrintSupport)
|
||||
if(ANDROID)
|
||||
set(FBSUPPORT OFF)
|
||||
set(NO_PRINTING ON)
|
||||
endif()
|
||||
|
||||
if(NO_USERMANUAL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue