Commit 1624ce26 authored by Jan Möbius's avatar Jan Möbius
Browse files

Merge branch 'test-gurobi-without-license' into 'master'

Test gurobi without license

See merge request !11
parents 5ea1da4a 0d51651c
Pipeline #18972 passed with stage
in 6 seconds
find_package(Gurobi REQUIRED)
add_executable(test_c "test_c.c")
target_link_libraries(test_c Gurobi::GurobiC)
add_test(NAME test_c COMMAND test_c)
add_executable(gurobi_c "gurobi_c.c")
target_link_libraries(gurobi_c Gurobi::GurobiC)
add_test(NAME gurobi_c COMMAND gurobi_c)
add_executable(test_cxx "test_cxx.cc")
target_link_libraries(test_cxx Gurobi::GurobiCXX)
add_test(NAME test_cxx COMMAND test_cxx)
add_executable(gurobi_cxx "gurobi_cxx.cc")
target_link_libraries(gurobi_cxx Gurobi::GurobiCXX)
add_test(NAME gurobi_cxx COMMAND gurobi_cxx)
#include <gurobi_c++.h>
#include <iostream>
int main(int argc, char *argv[])
{
try {
GRBEnv env;
GRBModel model {env};
} catch (GRBException &e) {
std::cerr << "Gurobi exception: " << e.getMessage() << std::endl;
}
return 0;
}
#include <gurobi_c++.h>
int main(int argc, char *argv[])
{
GRBEnv env;
GRBModel model {env};
return 0;
}
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