COIN-OR::LEMON - Graph Library

source: glpk-cmake/src/CMakeLists.txt @ 2:4c8956a7bdf4

tip
Last change on this file since 2:4c8956a7bdf4 was 2:4c8956a7bdf4, checked in by Alpar Juttner <alpar@…>, 10 years ago

Set up CMAKE build environment

File size: 2.6 KB
Line 
1SET(GLPK_LIB_SOURCES
2  glpapi01.c
3  glpapi02.c
4  glpapi03.c
5  glpapi04.c
6  glpapi05.c
7  glpapi06.c
8  glpapi07.c
9  glpapi08.c
10  glpapi09.c
11  glpapi10.c
12  glpapi11.c
13  glpapi12.c
14  glpapi13.c
15  glpapi14.c
16  glpapi15.c
17  glpapi16.c
18  glpapi17.c
19  glpapi18.c
20  glpapi19.c
21  glpapi.h
22  glpavl.c
23  glpavl.h
24  glpbfd.c
25  glpbfd.h
26  glpbfx.c
27  glpbfx.h
28  glpcpx.c
29  glpdmp.c
30  glpdmp.h
31  glpdmx.c
32  glpenv01.c
33  glpenv02.c
34  glpenv03.c
35  glpenv04.c
36  glpenv05.c
37  glpenv06.c
38  glpenv07.c
39  glpenv08.c
40  glpenv.h
41  glpfhv.c
42  glpfhv.h
43  glpgmp.c
44  glpgmp.h
45  glphbm.c
46  glphbm.h
47  glpini01.c
48  glpini02.c
49  glpios01.c
50  glpios02.c
51  glpios03.c
52  glpios04.c
53  glpios05.c
54  glpios06.c
55  glpios07.c
56  glpios08.c
57  glpios09.c
58  glpios10.c
59  glpios11.c
60  glpios12.c
61  glpios.h
62  glpipm.c
63  glpipm.h
64  glplib01.c
65  glplib02.c
66  glplib03.c
67  glplib.h
68  glplpf.c
69  glplpf.h
70  glplpx01.c
71  glplpx02.c
72  glplpx03.c
73  glpluf.c
74  glpluf.h
75  glplux.c
76  glplux.h
77  glpmat.c
78  glpmat.h
79  glpmpl01.c
80  glpmpl02.c
81  glpmpl03.c
82  glpmpl04.c
83  glpmpl05.c
84  glpmpl06.c
85  glpmpl.h
86  glpmps.c
87  glpnet01.c
88  glpnet02.c
89  glpnet03.c
90  glpnet04.c
91  glpnet05.c
92  glpnet06.c
93  glpnet07.c
94  glpnet08.c
95  glpnet09.c
96  glpnet.h
97  glpnpp01.c
98  glpnpp02.c
99  glpnpp03.c
100  glpnpp04.c
101  glpnpp05.c
102  glpnpp.h
103  glpqmd.c
104  glpqmd.h
105  glprgr.c
106  glprgr.h
107  glprng01.c
108  glprng02.c
109  glprng.h
110  glpscf.c
111  glpscf.h
112  glpscl.c
113  glpsdf.c
114  glpspm.c
115  glpspm.h
116  glpspx01.c
117  glpspx02.c
118  glpspx.h
119  glpsql.c
120  glpsql.h
121  glpssx01.c
122  glpssx02.c
123  glpssx.h
124  glpstd.h
125  glptsp.c
126  glptsp.h
127  amd/amd_1.c
128  amd/amd_2.c
129  amd/amd_aat.c
130  amd/amd_control.c
131  amd/amd_defaults.c
132  amd/amd_dump.c
133  amd/amd.h
134  amd/amd_info.c
135  amd/amd_internal.h
136  amd/amd_order.c
137  amd/amd_postorder.c
138  amd/amd_post_tree.c
139  amd/amd_preprocess.c
140  amd/amd_valid.c
141  colamd/colamd.c
142  colamd/colamd.h
143  )
144
145IF(MSVC)
146  IF(CMAKE_CL_64)
147    SET(GLPK_LIB_SOURCES ${GLPK_LIB_SOURCES}
148      ${PROJECT_SOURCE_DIR}/w64/glpk_4_45.def)
149  ELSE()
150    SET(GLPK_LIB_SOURCES ${GLPK_LIB_SOURCES}
151      ${PROJECT_SOURCE_DIR}/w32/glpk_4_45.def)
152  ENDIF()
153ENDIF()
154
155ADD_LIBRARY(glpk-shared SHARED ${GLPK_LIB_SOURCES})
156SET_TARGET_PROPERTIES(glpk-shared PROPERTIES OUTPUT_NAME glpk)
157ADD_LIBRARY(glpk-static STATIC ${GLPK_LIB_SOURCES})
158SET_TARGET_PROPERTIES(glpk-static PROPERTIES OUTPUT_NAME glpk)
159SET_TARGET_PROPERTIES(glpk-static PROPERTIES PREFIX "lib")
160
161SET_TARGET_PROPERTIES(glpk-shared PROPERTIES CLEAN_DIRECT_OUTPUT 1)
162SET_TARGET_PROPERTIES(glpk-static PROPERTIES CLEAN_DIRECT_OUTPUT 1)
163
164
165INSTALL(
166  TARGETS glpk-shared glpk-static
167  RUNTIME DESTINATION bin COMPONENT library
168  ARCHIVE DESTINATION lib COMPONENT library
169  LIBRARY DESTINATION lib COMPONENT library
170)
Note: See TracBrowser for help on using the repository browser.