From 6f935907053a6f2cc97b1fafed4a6896d40f6874 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 7 Apr 2015 17:49:10 -0300 Subject: Add FindLibdivecomputer.cmake Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- CMakeLists.txt | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 329a5e19b..74accf273 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,20 +38,7 @@ ELSE() INCLUDE_DIRECTORIES(${LIBGIT2_INCLUDE_DIRS}) ENDIF() -SET(LIBDCDEVEL "" CACHE STRING "libraries") -IF(DEFINED LIBDCDEVEL) - cmake_policy(SET CMP0015 OLD) - include_directories(${LIBDCDEVEL}/include ) - link_directories(${LIBDCDEVEL}/src/.libs) - if(NOT DEFINED LIBDCSTATIC) - set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -ldivecomputer -lusb-1.0) - ELSE() - set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} libdivecomputer.a -lusb-1.0) - ENDIF() -ELSE() - set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -ldivecomputer) -ENDIF() - +FIND_PACKAGE(Libdivecomputer REQUIRED) FIND_PACKAGE(Marble REQUIRED) include_directories(${MARBLE_INCLUDE_DIR}) -- cgit v1.2.3-70-g09d2