Commit eb1ec49e authored by Martin Heistermann's avatar Martin Heistermann
Browse files

Update cmake-library, use gurobi targets

parent 750e416c
Pipeline #16892 passed with stages
in 5 minutes and 25 seconds
......@@ -397,12 +397,7 @@ endif ()
find_package (Gurobi)
if (GUROBI_FOUND )
set (COMISO_GUROBI_CONFIG_FILE_SETTINGS "#define COMISO_GUROBI_AVAILABLE 1" )
list( APPEND COMISO_INCLUDE_DIRECTORIES ${GUROBI_INCLUDE_DIRS} )
# list( APPEND COMISO_LINK_DIRECTORIES ${GUROBI_LIBRARY_DIR} )
list( APPEND COMISO_LINK_LIBRARIES ${GUROBI_LIBRARIES} )
target_include_directories(CoMISo PRIVATE ${GUROBI_INCLUDE_DIRS})
# target_link_directories (CoMISo PRIVATE ${GUROBI_LIBRARY_DIR})
target_link_libraries (CoMISo PUBLIC ${GUROBI_LIBRARIES})
target_link_libraries (CoMISo PRIVATE Gurobi::GurobiC Gurobi::GurobiCXX)
else ()
message (STATUS "GUROBI not found!")
set (COMISO_GUROBI_CONFIG_FILE_SETTINGS "#define COMISO_GUROBI_AVAILABLE 0" )
......
Subproject commit b4ede4c8a4d4de93aeae320723002c692c0c0389
Subproject commit 472ce33a7c57de83effefae38429eef1a1b3a27f
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment