diff options
Diffstat (limited to 'cmake/Modules/HandleFindLibDiveComputer.cmake')
-rw-r--r-- | cmake/Modules/HandleFindLibDiveComputer.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
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() |