lemon-project-template-glpk
comparison cmake/FindLEMON.cmake @ 11:4fc6ad2fb8a6
Test GLPK in src/main.cc
author | Alpar Juttner <alpar@cs.elte.hu> |
---|---|
date | Sun, 06 Nov 2011 21:43:29 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c4c5169e985c |
---|---|
1 SET(LEMON_ROOT_DIR "" CACHE PATH "LEMON root directory") | |
2 | |
3 FIND_PATH(LEMON_INCLUDE_DIR | |
4 lemon/core.h | |
5 HINTS ${LEMON_ROOT_DIR}/include | |
6 "C:/Program Files/LEMON/include" | |
7 | |
8 ) | |
9 FIND_LIBRARY(LEMON_LIBRARY | |
10 NAMES lemon emon | |
11 HINTS ${LEMON_ROOT_DIR}/lib | |
12 "C:/Program Files/LEMON/lib" | |
13 | |
14 ) | |
15 | |
16 INCLUDE(FindPackageHandleStandardArgs) | |
17 FIND_PACKAGE_HANDLE_STANDARD_ARGS(LEMON DEFAULT_MSG LEMON_LIBRARY LEMON_INCLUDE_DIR) | |
18 | |
19 IF(LEMON_FOUND) | |
20 SET(LEMON_INCLUDE_DIRS ${LEMON_INCLUDE_DIR}) | |
21 SET(LEMON_LIBRARIES ${LEMON_LIBRARY}) | |
22 ENDIF(LEMON_FOUND) | |
23 | |
24 MARK_AS_ADVANCED(LEMON_LIBRARY LEMON_INCLUDE_DIR) |