File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,8 @@ find_package(Qt4)
171
171
if (QT4_FOUND)
172
172
set (GECODE_HAS_QT "/**/" )
173
173
set (GECODE_HAS_GIST "/**/" )
174
+ set (EXTRA_LIBS gist)
175
+ include (${QT_USE_FILE} )
174
176
endif ()
175
177
176
178
include (CheckSymbolExists)
@@ -299,7 +301,8 @@ foreach (line ${lines})
299
301
endif ()
300
302
endforeach ()
301
303
302
- foreach (lib support kernel search int set float minimodel)
304
+ foreach (lib support kernel search int set float
305
+ minimodel driver flatzinc ${EXTRA_LIBS} )
303
306
if (lib STREQUAL "minimodel" )
304
307
set (libupper MM)
305
308
else ()
@@ -318,6 +321,11 @@ target_link_libraries(gecodeint gecodekernel)
318
321
target_link_libraries (gecodeset gecodekernel)
319
322
target_link_libraries (gecodeminimodel gecodeint gecodeset gecodesearch)
320
323
324
+ if (GECODE_HAS_QT)
325
+ target_link_libraries (gecodeflatzinc ${QT_LIBRARIES} )
326
+ target_link_libraries (gecodegist ${QT_LIBRARIES} )
327
+ endif ()
328
+
321
329
if (FLOATSRC)
322
330
target_link_libraries (gecodefloat gecodekernel)
323
331
target_link_libraries (gecodeminimodel gecodefloat)
You can’t perform that action at this time.
0 commit comments