1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/cmake/FindLEMON.cmake Tue May 26 16:18:51 2009 +0100
1.3 @@ -0,0 +1,24 @@
1.4 +SET(LEMON_ROOT_DIR "" CACHE PATH "LEMON root directory")
1.5 +
1.6 +FIND_PATH(LEMON_INCLUDE_DIR
1.7 + lemon/core.h
1.8 + HINTS ${LEMON_ROOT_DIR}/include
1.9 + "C:/Program Files/LEMON/include"
1.10 +
1.11 +)
1.12 +FIND_LIBRARY(LEMON_LIBRARY
1.13 + NAMES lemon emon
1.14 + HINTS ${LEMON_ROOT_DIR}/lib
1.15 + "C:/Program Files/LEMON/lib"
1.16 +
1.17 +)
1.18 +
1.19 +INCLUDE(FindPackageHandleStandardArgs)
1.20 +FIND_PACKAGE_HANDLE_STANDARD_ARGS(LEMON DEFAULT_MSG LEMON_LIBRARY LEMON_INCLUDE_DIR)
1.21 +
1.22 +IF(LEMON_FOUND)
1.23 + SET(LEMON_INCLUDE_DIRS ${LEMON_INCLUDE_DIR})
1.24 + SET(LEMON_LIBRARIES ${LEMON_LIBRARY})
1.25 +ENDIF(LEMON_FOUND)
1.26 +
1.27 +MARK_AS_ADVANCED(LEMON_LIBRARY LEMON_INCLUDE_DIR)