-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
168 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Find GLPK header and library. | ||
# | ||
|
||
# This module defines the following uncached variables: | ||
# GLPK_FOUND, if false, do not try to use GLPK. | ||
# GLPK_INCLUDE_DIRS, where to find glpk.h. | ||
# GLPK_LIBRARIES, the libraries to link against to use the GLPK library | ||
# GLPK_LIBRARY_DIRS, the directory where the GLPK library is found. | ||
|
||
find_path( | ||
GLPK_INCLUDE_DIR | ||
glpk.h | ||
) | ||
|
||
if( GLPK_INCLUDE_DIR ) | ||
find_library( | ||
GLPK_LIBRARY | ||
NAMES glpk | ||
) | ||
if( GLPK_LIBRARY ) | ||
set(GLPK_LIBRARY_DIR "") | ||
get_filename_component(GLPK_LIBRARY_DIRS ${GLPK_LIBRARY} PATH) | ||
# Set uncached variables as per standard. | ||
set(GLPK_FOUND ON) | ||
set(GLPK_INCLUDE_DIRS ${GLPK_INCLUDE_DIR}) | ||
set(GLPK_LIBRARIES ${GLPK_LIBRARY}) | ||
endif(GLPK_LIBRARY) | ||
else(GLPK_INCLUDE_DIR) | ||
message(STATUS "FindGLPK: Could not find glpk.h") | ||
endif(GLPK_INCLUDE_DIR) | ||
|
||
if(GLPK_FOUND) | ||
if(NOT GLPK_FIND_QUIETLY) | ||
message(STATUS "FindGLPK: Found both glpk.h and libglpk.a") | ||
endif(NOT GLPK_FIND_QUIETLY) | ||
else(GLPK_FOUND) | ||
if(GLPK_FIND_REQUIRED) | ||
message(STATUS "FindGLPK: Could not find glpk.h and/or libglpk.a") | ||
endif(GLPK_FIND_REQUIRED) | ||
endif(GLPK_FOUND) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.