File: FindGLPK.cmake

package info (click to toggle)
cgal 6.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 144,952 kB
  • sloc: cpp: 811,597; ansic: 208,576; sh: 493; python: 411; makefile: 286; javascript: 174
file content (30 lines) | stat: -rw-r--r-- 858 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# This file sets up GLPK for CMake. Once done this will define
#  GLPK_FOUND             - system has GLPK lib
#  GLPK_INCLUDE_DIR       - the GLPK include directory
#  GLPK_LIBRARIES         - Link these to use GLPK


# Is it already configured?
if (NOT GLPK_FOUND)

    # first look in user defined locations
    find_path(GLPK_INCLUDE_DIR
                NAMES glpk.h
                PATHS /usr/local/include/LASlib/
                ENV GLPK_INC_DIR
             )

    find_library(GLPK_LIBRARIES
                 NAMES libglpk glpk
                 PATHS ENV LD_LIBRARY_PATH
                       ENV LIBRARY_PATH
                       /usr/local/lib
                       ${GLPK_INCLUDE_DIR}/../lib
                      ENV GLPK_LIB_DIR
                )

    if(GLPK_LIBRARIES AND GLPK_INCLUDE_DIR)
      set(GLPK_FOUND TRUE)
    endif()

endif()