Files
ortools-clone/examples/python/CMakeLists.txt
Corentin Le Molgat 786bfce05f Update routing python examples
- add vrp.py
- add vrpgs.py
- add cvrp.py
- update cvrptw.py
2018-04-27 16:47:49 +02:00

25 lines
489 B
CMake

if (NOT BUILD_PYTHON)
return()
endif()
foreach(TEST
hidato_table
integer_programming
knapsack
linear_programming
pyflow_example
tsp
vrp
vrpgs
cvrp
cvrptw
)
add_test(py${TEST}_venv ${VENV_BIN_DIR}/python ${CMAKE_CURRENT_SOURCE_DIR}/${TEST}.py)
set_tests_properties(py${TEST}_venv PROPERTIES DEPENDS build_venv)
endforeach()
include(GNUInstallDirs)
install(DIRECTORY .
DESTINATION ${CMAKE_INSTALL_DATADIR}/ortools/examples/python
FILES_MATCHING PATTERN "*.py")