diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-16 20:17:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-16 20:17:18 +0000 |
commit | f4fae92b6768541e2952173c3d4b09040f95bf7e (patch) | |
tree | d8c5d93232235cd635f3310b4d95490df181ba2d /kpilot/cmake/modules/FindPilotlink.cmake | |
parent | 125c0a08265b75a133644d3b55f47e37c919f45d (diff) | |
download | tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip |
Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpilot/cmake/modules/FindPilotlink.cmake')
-rw-r--r-- | kpilot/cmake/modules/FindPilotlink.cmake | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/kpilot/cmake/modules/FindPilotlink.cmake b/kpilot/cmake/modules/FindPilotlink.cmake deleted file mode 100644 index 649419e6..00000000 --- a/kpilot/cmake/modules/FindPilotlink.cmake +++ /dev/null @@ -1,55 +0,0 @@ -INCLUDE(CheckCXXSourceCompiles) - -set(CMAKE_INCLUDE_PATH "${PILOTLINK_BASE}/include") -FIND_PATH(PILOTLINK_INCLUDE_DIR pi-dlp.h - /usr/include - /usr/include/libpisock - /usr/local/include - ) -set(CMAKE_LIBRARY_PATH "${PILOTLINK_BASE}/lib") -FIND_LIBRARY(PILOTLINK_LIBRARY pisock - /usr/lib - /usr/local/lib - ) - -IF (NOT PILOTLINK_INCLUDE_DIR) - MESSAGE(STATUS "Could not find pilot-link (pi-dlp.h)") -ELSE (NOT PILOTLINK_INCLUDE_DIR) - MESSAGE(STATUS "Found pilot-link includes in ${PILOTLINK_INCLUDE_DIR}") -ENDIF (NOT PILOTLINK_INCLUDE_DIR) - -IF (NOT PILOTLINK_LIBRARY) - MESSAGE(STATUS "Could not find pilot-link (libpisock.so)") -ELSE (NOT PILOTLINK_LIBRARY) - MESSAGE(STATUS "Found pilot-link libraries in ${PILOTLINK_LIBRARY}") -ENDIF (NOT PILOTLINK_LIBRARY) - -IF (PILOTLINK_INCLUDE_DIR AND PILOTLINK_LIBRARY) - SET(PILOTLINK_FOUND TRUE) -ENDIF (PILOTLINK_INCLUDE_DIR AND PILOTLINK_LIBRARY) - -IF (PILOTLINK_FOUND) - SET(CMAKE_REQUIRED_INCLUDES ${PILOTLINK_INCLUDE_DIR}) - CHECK_CXX_SOURCE_COMPILES(" -#include <pi-version.h> -#if !PILOT_LINK_IS(0,12,0) -#error \"Pilot-link version is < 0.12.0\" -#else -int main() { return 0; } -#endif -" - PILOTLINK_VERSION_OK) -ENDIF (PILOTLINK_FOUND) - -IF (NOT PILOTLINK_VERSION_OK) - SET(PILOTLINK_FOUND FALSE) -ENDIF (NOT PILOTLINK_VERSION_OK) - - -IF (NOT PILOTLINK_FOUND) - IF (Pilotlink_FIND_REQUIRED) - MESSAGE(STATUS "KPilot requires pilot-link 0.12.0 or later. Pilot-link is available from pilot-link.org and is packaged by most distributions. Remember to install the development package with the compilation headers as well.") - MESSAGE(FATAL_ERROR "Could not find pilot-link.") - ENDIF (Pilotlink_FIND_REQUIRED) -ENDIF (NOT PILOTLINK_FOUND) - |