src/CMakeLists.txt
changeset 2 4c8956a7bdf4
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/CMakeLists.txt	Sun Dec 05 17:35:23 2010 +0100
     1.3 @@ -0,0 +1,170 @@
     1.4 +SET(GLPK_LIB_SOURCES
     1.5 +  glpapi01.c
     1.6 +  glpapi02.c
     1.7 +  glpapi03.c
     1.8 +  glpapi04.c
     1.9 +  glpapi05.c
    1.10 +  glpapi06.c
    1.11 +  glpapi07.c
    1.12 +  glpapi08.c
    1.13 +  glpapi09.c
    1.14 +  glpapi10.c
    1.15 +  glpapi11.c
    1.16 +  glpapi12.c
    1.17 +  glpapi13.c
    1.18 +  glpapi14.c
    1.19 +  glpapi15.c
    1.20 +  glpapi16.c
    1.21 +  glpapi17.c
    1.22 +  glpapi18.c
    1.23 +  glpapi19.c
    1.24 +  glpapi.h
    1.25 +  glpavl.c
    1.26 +  glpavl.h
    1.27 +  glpbfd.c
    1.28 +  glpbfd.h
    1.29 +  glpbfx.c
    1.30 +  glpbfx.h
    1.31 +  glpcpx.c
    1.32 +  glpdmp.c
    1.33 +  glpdmp.h
    1.34 +  glpdmx.c
    1.35 +  glpenv01.c
    1.36 +  glpenv02.c
    1.37 +  glpenv03.c
    1.38 +  glpenv04.c
    1.39 +  glpenv05.c
    1.40 +  glpenv06.c
    1.41 +  glpenv07.c
    1.42 +  glpenv08.c
    1.43 +  glpenv.h
    1.44 +  glpfhv.c
    1.45 +  glpfhv.h
    1.46 +  glpgmp.c
    1.47 +  glpgmp.h
    1.48 +  glphbm.c
    1.49 +  glphbm.h
    1.50 +  glpini01.c
    1.51 +  glpini02.c
    1.52 +  glpios01.c
    1.53 +  glpios02.c
    1.54 +  glpios03.c
    1.55 +  glpios04.c
    1.56 +  glpios05.c
    1.57 +  glpios06.c
    1.58 +  glpios07.c
    1.59 +  glpios08.c
    1.60 +  glpios09.c
    1.61 +  glpios10.c
    1.62 +  glpios11.c
    1.63 +  glpios12.c
    1.64 +  glpios.h
    1.65 +  glpipm.c
    1.66 +  glpipm.h
    1.67 +  glplib01.c
    1.68 +  glplib02.c
    1.69 +  glplib03.c
    1.70 +  glplib.h
    1.71 +  glplpf.c
    1.72 +  glplpf.h
    1.73 +  glplpx01.c
    1.74 +  glplpx02.c
    1.75 +  glplpx03.c
    1.76 +  glpluf.c
    1.77 +  glpluf.h
    1.78 +  glplux.c
    1.79 +  glplux.h
    1.80 +  glpmat.c
    1.81 +  glpmat.h
    1.82 +  glpmpl01.c
    1.83 +  glpmpl02.c
    1.84 +  glpmpl03.c
    1.85 +  glpmpl04.c
    1.86 +  glpmpl05.c
    1.87 +  glpmpl06.c
    1.88 +  glpmpl.h
    1.89 +  glpmps.c
    1.90 +  glpnet01.c
    1.91 +  glpnet02.c
    1.92 +  glpnet03.c
    1.93 +  glpnet04.c
    1.94 +  glpnet05.c
    1.95 +  glpnet06.c
    1.96 +  glpnet07.c
    1.97 +  glpnet08.c
    1.98 +  glpnet09.c
    1.99 +  glpnet.h
   1.100 +  glpnpp01.c
   1.101 +  glpnpp02.c
   1.102 +  glpnpp03.c
   1.103 +  glpnpp04.c
   1.104 +  glpnpp05.c
   1.105 +  glpnpp.h
   1.106 +  glpqmd.c
   1.107 +  glpqmd.h
   1.108 +  glprgr.c
   1.109 +  glprgr.h
   1.110 +  glprng01.c
   1.111 +  glprng02.c
   1.112 +  glprng.h
   1.113 +  glpscf.c
   1.114 +  glpscf.h
   1.115 +  glpscl.c
   1.116 +  glpsdf.c
   1.117 +  glpspm.c
   1.118 +  glpspm.h
   1.119 +  glpspx01.c
   1.120 +  glpspx02.c
   1.121 +  glpspx.h
   1.122 +  glpsql.c
   1.123 +  glpsql.h
   1.124 +  glpssx01.c
   1.125 +  glpssx02.c
   1.126 +  glpssx.h
   1.127 +  glpstd.h
   1.128 +  glptsp.c
   1.129 +  glptsp.h
   1.130 +  amd/amd_1.c
   1.131 +  amd/amd_2.c
   1.132 +  amd/amd_aat.c
   1.133 +  amd/amd_control.c
   1.134 +  amd/amd_defaults.c
   1.135 +  amd/amd_dump.c
   1.136 +  amd/amd.h
   1.137 +  amd/amd_info.c
   1.138 +  amd/amd_internal.h
   1.139 +  amd/amd_order.c
   1.140 +  amd/amd_postorder.c
   1.141 +  amd/amd_post_tree.c
   1.142 +  amd/amd_preprocess.c
   1.143 +  amd/amd_valid.c
   1.144 +  colamd/colamd.c
   1.145 +  colamd/colamd.h
   1.146 +  )
   1.147 +
   1.148 +IF(MSVC)
   1.149 +  IF(CMAKE_CL_64)
   1.150 +    SET(GLPK_LIB_SOURCES ${GLPK_LIB_SOURCES}
   1.151 +      ${PROJECT_SOURCE_DIR}/w64/glpk_4_45.def)
   1.152 +  ELSE()
   1.153 +    SET(GLPK_LIB_SOURCES ${GLPK_LIB_SOURCES}
   1.154 +      ${PROJECT_SOURCE_DIR}/w32/glpk_4_45.def)
   1.155 +  ENDIF()
   1.156 +ENDIF()
   1.157 +
   1.158 +ADD_LIBRARY(glpk-shared SHARED ${GLPK_LIB_SOURCES})
   1.159 +SET_TARGET_PROPERTIES(glpk-shared PROPERTIES OUTPUT_NAME glpk)
   1.160 +ADD_LIBRARY(glpk-static STATIC ${GLPK_LIB_SOURCES})
   1.161 +SET_TARGET_PROPERTIES(glpk-static PROPERTIES OUTPUT_NAME glpk)
   1.162 +SET_TARGET_PROPERTIES(glpk-static PROPERTIES PREFIX "lib")
   1.163 +
   1.164 +SET_TARGET_PROPERTIES(glpk-shared PROPERTIES CLEAN_DIRECT_OUTPUT 1)
   1.165 +SET_TARGET_PROPERTIES(glpk-static PROPERTIES CLEAN_DIRECT_OUTPUT 1)
   1.166 +
   1.167 +
   1.168 +INSTALL(
   1.169 +  TARGETS glpk-shared glpk-static
   1.170 +  RUNTIME DESTINATION bin COMPONENT library
   1.171 +  ARCHIVE DESTINATION lib COMPONENT library
   1.172 +  LIBRARY DESTINATION lib COMPONENT library
   1.173 +)