mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Added HandleFindLibDiveComputer.cmake
Anoter attempt to clear the Main CMakeLists.txt file Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
This commit is contained in:
parent
65cecad564
commit
126d9a00e4
2 changed files with 8 additions and 8 deletions
|
@ -87,6 +87,7 @@ include(cmake/Modules/pkgconfig_helper.cmake)
|
|||
# if you think a module miss anything, take a look on the specific
|
||||
# module file.
|
||||
include(cmake/Modules/HandleFindGit2.cmake)
|
||||
include(cmake/Modules/HandleFindLibDiveComputer.cmake)
|
||||
|
||||
pkg_config_library(LIBXML libxml-2.0 REQUIRED)
|
||||
pkg_config_library(LIBSQLITE3 sqlite3 REQUIRED)
|
||||
|
@ -99,14 +100,6 @@ if(SMARTTRAK_IMPORT)
|
|||
pkg_config_library(LIBMDB libmdb REQUIRED)
|
||||
endif()
|
||||
|
||||
if(LIBDC_FROM_PKGCONFIG)
|
||||
pkg_config_library(LIBDC libdivecomputer REQUIRED)
|
||||
set(LIBDIVECOMPUTER_LIBRARIES "")
|
||||
else()
|
||||
find_package(Libdivecomputer REQUIRED)
|
||||
include_directories(${LIBDIVECOMPUTER_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
# setup marble
|
||||
|
||||
if(NOT NO_MARBLE)
|
||||
|
|
7
cmake/Modules/HandleFindLibDiveComputer.cmake
Normal file
7
cmake/Modules/HandleFindLibDiveComputer.cmake
Normal file
|
@ -0,0 +1,7 @@
|
|||
if(LIBDC_FROM_PKGCONFIG)
|
||||
pkg_config_library(LIBDC libdivecomputer REQUIRED)
|
||||
set(LIBDIVECOMPUTER_LIBRARIES "")
|
||||
else()
|
||||
find_package(Libdivecomputer REQUIRED)
|
||||
include_directories(${LIBDIVECOMPUTER_INCLUDE_DIR})
|
||||
endif()
|
Loading…
Add table
Reference in a new issue