From 126d9a00e41607fc4c1eb20edcbe17529c09ef38 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 17 Nov 2015 17:52:49 -0200 Subject: Added HandleFindLibDiveComputer.cmake Anoter attempt to clear the Main CMakeLists.txt file Signed-off-by: Tomaz Canabrava --- cmake/Modules/HandleFindLibDiveComputer.cmake | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 cmake/Modules/HandleFindLibDiveComputer.cmake (limited to 'cmake/Modules') diff --git a/cmake/Modules/HandleFindLibDiveComputer.cmake b/cmake/Modules/HandleFindLibDiveComputer.cmake new file mode 100644 index 000000000..2f5bfeb32 --- /dev/null +++ b/cmake/Modules/HandleFindLibDiveComputer.cmake @@ -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() -- cgit v1.2.3-70-g09d2