lemon-project-template-glpk

changeset 10:5545663ca997 subpack-glpk

Configure GLPK build
author Alpar Juttner <alpar@cs.elte.hu>
date Sun, 06 Nov 2011 21:42:23 +0100
parents 33de93886c88
children 4fc6ad2fb8a6
files CMakeLists.txt deps/glpk/CMakeLists.txt
diffstat 2 files changed, 192 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/CMakeLists.txt	Sun Nov 06 20:59:10 2011 +0100
     1.2 +++ b/CMakeLists.txt	Sun Nov 06 21:42:23 2011 +0100
     1.3 @@ -40,6 +40,12 @@
     1.4                         "Subdir for installing the examples")
     1.5  ENDIF(UNIX)
     1.6  
     1.7 +# Configure GLPK. Typically, you don't want to modify it.
     1.8 +
     1.9 +SET(GLPK_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/deps/glpk/src CACHE STRING "")
    1.10 +SET(GLPK_LIBRARY glpk CACHE STRING "")
    1.11 +ADD_SUBDIRECTORY(deps/glpk)
    1.12 +
    1.13  ## The next part looks for LEMON. Typically, you don't want to modify it.
    1.14  ##
    1.15  ## First, it tries to use LEMON as a CMAKE subproject by looking for
    1.16 @@ -82,6 +88,11 @@
    1.17    ${PROJECT_SOURCE_DIR}
    1.18    ${PROJECT_BINARY_DIR}
    1.19    ${LEMON_INCLUDE_DIRS}
    1.20 +  ${PROJECT_SOURCE_DIR}/deps/glpk/src
    1.21 +)
    1.22 +
    1.23 +LINK_DIRECTORIES(
    1.24 +  ${CMAKE_BINARY_DIR}/glpk
    1.25  )
    1.26  
    1.27  IF(CMAKE_COMPILER_IS_GNUCXX)
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/deps/glpk/CMakeLists.txt	Sun Nov 06 21:42:23 2011 +0100
     2.3 @@ -0,0 +1,181 @@
     2.4 +INCLUDE_DIRECTORIES(
     2.5 +  ${CMAKE_CURRENT_SOURCE_DIR}/src
     2.6 +)
     2.7 +
     2.8 +ADD_LIBRARY(glpk
     2.9 +  src/amd/amd_1.c
    2.10 +  src/amd/amd_2.c
    2.11 +  src/amd/amd_aat.c
    2.12 +  src/amd/amd_control.c
    2.13 +  src/amd/amd_defaults.c
    2.14 +  src/amd/amd_dump.c
    2.15 +  src/amd/amd.h
    2.16 +  src/amd/amd_info.c
    2.17 +  src/amd/amd_internal.h
    2.18 +  src/amd/amd_order.c
    2.19 +  src/amd/amd_postorder.c
    2.20 +  src/amd/amd_post_tree.c
    2.21 +  src/amd/amd_preprocess.c
    2.22 +  src/amd/amd_valid.c
    2.23 +  src/colamd/colamd.c
    2.24 +  src/colamd/colamd.h
    2.25 +  src/glpapi01.c
    2.26 +  src/glpapi02.c
    2.27 +  src/glpapi03.c
    2.28 +  src/glpapi04.c
    2.29 +  src/glpapi05.c
    2.30 +  src/glpapi06.c
    2.31 +  src/glpapi07.c
    2.32 +  src/glpapi08.c
    2.33 +  src/glpapi09.c
    2.34 +  src/glpapi10.c
    2.35 +  src/glpapi11.c
    2.36 +  src/glpapi12.c
    2.37 +  src/glpapi13.c
    2.38 +  src/glpapi14.c
    2.39 +  src/glpapi15.c
    2.40 +  src/glpapi16.c
    2.41 +  src/glpapi17.c
    2.42 +  src/glpapi18.c
    2.43 +  src/glpapi19.c
    2.44 +  src/glpapi20.c
    2.45 +  src/glpapi21.c
    2.46 +  src/glpapi.h
    2.47 +  src/glpavl.c
    2.48 +  src/glpavl.h
    2.49 +  src/glpbfd.c
    2.50 +  src/glpbfd.h
    2.51 +  src/glpbfx.c
    2.52 +  src/glpbfx.h
    2.53 +  src/glpcpx.c
    2.54 +  src/glpdmp.c
    2.55 +  src/glpdmp.h
    2.56 +  src/glpdmx.c
    2.57 +  src/glpenv01.c
    2.58 +  src/glpenv02.c
    2.59 +  src/glpenv03.c
    2.60 +  src/glpenv04.c
    2.61 +  src/glpenv05.c
    2.62 +  src/glpenv06.c
    2.63 +  src/glpenv07.c
    2.64 +  src/glpenv08.c
    2.65 +  src/glpenv.h
    2.66 +  src/glpfhv.c
    2.67 +  src/glpfhv.h
    2.68 +  src/glpgmp.c
    2.69 +  src/glpgmp.h
    2.70 +  src/glphbm.c
    2.71 +  src/glphbm.h
    2.72 +  src/glpini01.c
    2.73 +  src/glpini02.c
    2.74 +  src/glpios01.c
    2.75 +  src/glpios02.c
    2.76 +  src/glpios03.c
    2.77 +  src/glpios04.c
    2.78 +  src/glpios05.c
    2.79 +  src/glpios06.c
    2.80 +  src/glpios07.c
    2.81 +  src/glpios08.c
    2.82 +  src/glpios09.c
    2.83 +  src/glpios10.c
    2.84 +  src/glpios11.c
    2.85 +  src/glpios12.c
    2.86 +  src/glpios.h
    2.87 +  src/glpipm.c
    2.88 +  src/glpipm.h
    2.89 +  src/glpk.h
    2.90 +  src/glplib01.c
    2.91 +  src/glplib02.c
    2.92 +  src/glplib03.c
    2.93 +  src/glplib.h
    2.94 +  src/glplpf.c
    2.95 +  src/glplpf.h
    2.96 +  src/glplpx01.c
    2.97 +  src/glplpx02.c
    2.98 +  src/glplpx03.c
    2.99 +  src/glpluf.c
   2.100 +  src/glpluf.h
   2.101 +  src/glplux.c
   2.102 +  src/glplux.h
   2.103 +  src/glpmat.c
   2.104 +  src/glpmat.h
   2.105 +  src/glpmpl01.c
   2.106 +  src/glpmpl02.c
   2.107 +  src/glpmpl03.c
   2.108 +  src/glpmpl04.c
   2.109 +  src/glpmpl05.c
   2.110 +  src/glpmpl06.c
   2.111 +  src/glpmpl.h
   2.112 +  src/glpmps.c
   2.113 +  src/glpnet01.c
   2.114 +  src/glpnet02.c
   2.115 +  src/glpnet03.c
   2.116 +  src/glpnet04.c
   2.117 +  src/glpnet05.c
   2.118 +  src/glpnet06.c
   2.119 +  src/glpnet07.c
   2.120 +  src/glpnet08.c
   2.121 +  src/glpnet09.c
   2.122 +  src/glpnet.h
   2.123 +  src/glpnpp01.c
   2.124 +  src/glpnpp02.c
   2.125 +  src/glpnpp03.c
   2.126 +  src/glpnpp04.c
   2.127 +  src/glpnpp05.c
   2.128 +  src/glpnpp06.c
   2.129 +  src/glpnpp.h
   2.130 +  src/glpqmd.c
   2.131 +  src/glpqmd.h
   2.132 +  src/glprgr.c
   2.133 +  src/glprgr.h
   2.134 +  src/glprng01.c
   2.135 +  src/glprng02.c
   2.136 +  src/glprng.h
   2.137 +  src/glpscf.c
   2.138 +  src/glpscf.h
   2.139 +  src/glpscl.c
   2.140 +  src/glpsdf.c
   2.141 +  src/glpspm.c
   2.142 +  src/glpspm.h
   2.143 +  src/glpspx01.c
   2.144 +  src/glpspx02.c
   2.145 +  src/glpspx.h
   2.146 +  src/glpsql.c
   2.147 +  src/glpsql.h
   2.148 +  src/glpssx01.c
   2.149 +  src/glpssx02.c
   2.150 +  src/glpssx.h
   2.151 +  src/glpstd.h
   2.152 +  src/glptsp.c
   2.153 +  src/glptsp.h
   2.154 +  src/minisat/minisat.c
   2.155 +  src/minisat/minisat.h
   2.156 +  src/zlib/adler32.c
   2.157 +  src/zlib/compress.c
   2.158 +  src/zlib/crc32.c
   2.159 +  src/zlib/crc32.h
   2.160 +  src/zlib/deflate.c
   2.161 +  src/zlib/deflate.h
   2.162 +  src/zlib/gzclose.c
   2.163 +  src/zlib/gzguts.h
   2.164 +  src/zlib/gzlib.c
   2.165 +  src/zlib/gzread.c
   2.166 +  src/zlib/gzwrite.c
   2.167 +  src/zlib/infback.c
   2.168 +  src/zlib/inffast.c
   2.169 +  src/zlib/inffast.h
   2.170 +  src/zlib/inffixed.h
   2.171 +  src/zlib/inflate.c
   2.172 +  src/zlib/inflate.h
   2.173 +  src/zlib/inftrees.c
   2.174 +  src/zlib/inftrees.h
   2.175 +  src/zlib/trees.c
   2.176 +  src/zlib/trees.h
   2.177 +  src/zlib/uncompr.c
   2.178 +  src/zlib/zconf.h
   2.179 +  src/zlib/zio.c
   2.180 +  src/zlib/zio.h
   2.181 +  src/zlib/zlib.h
   2.182 +  src/zlib/zutil.c
   2.183 +  src/zlib/zutil.h
   2.184 +)