[opengm] 150/386: Link opengm python learning module against CPLEX and/or Gurobi
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Wed Aug 31 08:36:45 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/master
in repository opengm.
commit 0d73385b9eab7835e9f26348f01e44500a9de145
Author: Carsten Haubold <carstenhaubold at googlemail.com>
Date: Fri Dec 19 10:42:57 2014 +0100
Link opengm python learning module against CPLEX and/or Gurobi
---
src/interfaces/python/opengm/learning/CMakeLists.txt | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/src/interfaces/python/opengm/learning/CMakeLists.txt b/src/interfaces/python/opengm/learning/CMakeLists.txt
index c657fc0..dbc2703 100644
--- a/src/interfaces/python/opengm/learning/CMakeLists.txt
+++ b/src/interfaces/python/opengm/learning/CMakeLists.txt
@@ -64,8 +64,22 @@ ENDIF()
target_link_libraries(_learning ${HDF5_CORE_LIBRARY} ${HDF5_LIBRARIES} )
+if(WITH_CPLEX)
+ if(WIN32)
+ target_link_libraries(_learning wsock32.lib ${CPLEX_ILOCPLEX_LIBRARY} ${CPLEX_LIBRARY} ${CPLEX_CONCERT_LIBRARY})
+ else()
+ target_link_libraries(_learning ${CMAKE_THREAD_LIBS_INIT} ${CPLEX_ILOCPLEX_LIBRARY} ${CPLEX_LIBRARY} ${CPLEX_CONCERT_LIBRARY} )
+ endif()
+endif()
+if(WITH_GUROBI)
+ target_link_libraries(_learning ${CMAKE_THREAD_LIBS_INIT}
+ ${GUROBI_LIBRARIES}
+ #${GUOBI_CXX_LIBRARY}
+ ${CMAKE_THREAD_LIBS_INIT}
+ )
+endif()
#--------------------------------------------------------------
# Copy from src to build
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opengm.git
More information about the debian-science-commits
mailing list