author | Peter Kovacs <kpeter@inf.elte.hu> |
Wed, 24 Jun 2009 11:22:23 +0100 | |
changeset 4 | 6de89926e594 |
permissions | -rw-r--r-- |
alpar@0 | 1 |
SET(LEMON_ROOT_DIR "" CACHE PATH "LEMON root directory") |
alpar@0 | 2 |
|
alpar@0 | 3 |
FIND_PATH(LEMON_INCLUDE_DIR |
alpar@0 | 4 |
lemon/core.h |
alpar@0 | 5 |
HINTS ${LEMON_ROOT_DIR}/include |
alpar@0 | 6 |
"C:/Program Files/LEMON/include" |
alpar@0 | 7 |
|
alpar@0 | 8 |
) |
alpar@0 | 9 |
FIND_LIBRARY(LEMON_LIBRARY |
alpar@0 | 10 |
NAMES lemon emon |
alpar@0 | 11 |
HINTS ${LEMON_ROOT_DIR}/lib |
alpar@0 | 12 |
"C:/Program Files/LEMON/lib" |
alpar@0 | 13 |
|
alpar@0 | 14 |
) |
alpar@0 | 15 |
|
alpar@0 | 16 |
INCLUDE(FindPackageHandleStandardArgs) |
alpar@0 | 17 |
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LEMON DEFAULT_MSG LEMON_LIBRARY LEMON_INCLUDE_DIR) |
alpar@0 | 18 |
|
alpar@0 | 19 |
IF(LEMON_FOUND) |
alpar@0 | 20 |
SET(LEMON_INCLUDE_DIRS ${LEMON_INCLUDE_DIR}) |
alpar@0 | 21 |
SET(LEMON_LIBRARIES ${LEMON_LIBRARY}) |
alpar@0 | 22 |
ENDIF(LEMON_FOUND) |
alpar@0 | 23 |
|
alpar@0 | 24 |
MARK_AS_ADVANCED(LEMON_LIBRARY LEMON_INCLUDE_DIR) |