CMakeLists.txt 280 Bytes
Newer Older
Jan Möbius's avatar
Jan Möbius committed
1
find_package(GUROBI REQUIRED)
Martin Heistermann's avatar
Martin Heistermann committed
2

3
add_executable(test_c "test_c.c")
Jan Möbius's avatar
Jan Möbius committed
4
target_link_libraries(test_c GUROBI::Gurobi)
Martin Heistermann's avatar
Martin Heistermann committed
5
add_test(NAME test_c COMMAND test_c)
6
7

add_executable(test_cxx "test_cxx.cc")
Jan Möbius's avatar
Jan Möbius committed
8
target_link_libraries(test_cxx GUROBI::GurobiCXX)
Martin Heistermann's avatar
Martin Heistermann committed
9
10
11
add_test(NAME test_cxx COMMAND test_cxx)