summaryrefslogtreecommitdiffstats
path: root/cmake/FindClSerMe4.cmake
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-02-21 15:06:42 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-02-21 15:06:42 +0100
commit28619821bc90ed4c15844b2e6b6a5a2971ef5f2e (patch)
treec313b5b77087c18027d152c4c69c49b8ea0254d9 /cmake/FindClSerMe4.cmake
downloaduca-28619821bc90ed4c15844b2e6b6a5a2971ef5f2e.tar.gz
uca-28619821bc90ed4c15844b2e6b6a5a2971ef5f2e.tar.bz2
uca-28619821bc90ed4c15844b2e6b6a5a2971ef5f2e.tar.xz
uca-28619821bc90ed4c15844b2e6b6a5a2971ef5f2e.zip
Initial commit
Diffstat (limited to 'cmake/FindClSerMe4.cmake')
-rw-r--r--cmake/FindClSerMe4.cmake44
1 files changed, 44 insertions, 0 deletions
diff --git a/cmake/FindClSerMe4.cmake b/cmake/FindClSerMe4.cmake
new file mode 100644
index 0000000..2251c9a
--- /dev/null
+++ b/cmake/FindClSerMe4.cmake
@@ -0,0 +1,44 @@
+FILE(TO_CMAKE_PATH "$ENV{SISODIR5}" SISODIR5)
+FILE(TO_CMAKE_PATH "$ENV{SISODIR4}" SISODIR4)
+FILE(TO_CMAKE_PATH "$ENV{SISODIR}" SISODIRME4)
+
+IF (CLSERME4_INCLUDE_DIR AND CLSERME4_LIBRARY)
+ SET(CLSERME4_FIND_QUIETLY TRUE)
+ENDIF (CLSERME4_INCLUDE_DIR AND CLSERME4_LIBRARY)
+
+FIND_PATH(CLSERME4_INCLUDE_DIR clser.h
+ PATHS
+ $ENV{CLSERME4}/include
+ ${SISODIR5}/include
+ ${SISODIR4}/include
+ ${SISODIRME4}/include
+ ${CMAKE_INSTALL_PREFIX}/include
+)
+
+INCLUDE(SisoLibDir)
+SISO_LIB_DIR("${SISODIR5}/lib" LIB_DIRS COMPILER_LIB_DIR)
+SISO_LIB_DIR("${SISODIR4}/lib" LIB_DIRS)
+SISO_LIB_DIR("${SISODIRME4}/lib" LIB_DIRS)
+
+FIND_LIBRARY(CLSERME4_LIBRARY NAMES clserme4 clsersisome4
+ PATHS
+ $ENV{CLSERME4}/lib
+ $ENV{CLSERME4}
+ ${LIB_DIRS}
+ ${CMAKE_INSTALL_PREFIX}/lib
+)
+
+IF(CLSERME4_INCLUDE_DIR AND CLSERME4_LIBRARY)
+ SET(CLSERME4_FOUND TRUE)
+ENDIF(CLSERME4_INCLUDE_DIR AND CLSERME4_LIBRARY)
+
+IF(CLSERME4_FOUND)
+ IF(NOT CLSERME4_FIND_QUIETLY)
+ MESSAGE(STATUS "Found clser library for meIV: ${CLSERME4_LIBRARY}")
+ ENDIF(NOT CLSERME4_FIND_QUIETLY)
+ SET(CLSERME4_LIBRARIES ${CLSERME4_LIBRARY})
+ELSE(CLSERME4_FOUND)
+ IF(CLSERME4_FIND_REQUIRED)
+ MESSAGE(FATAL_ERROR "clser library not found")
+ ENDIF(CLSERME4_FIND_REQUIRED)
+ENDIF(CLSERME4_FOUND)