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:
Tomaz Canabrava 2015-11-17 17:52:49 -02:00 committed by Dirk Hohndel
parent 65cecad564
commit 126d9a00e4
2 changed files with 8 additions and 8 deletions

View 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()