diff --git a/CMakeLists.txt b/CMakeLists.txt index 029f4e90d6..1b715b0bd0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -170,3 +170,9 @@ include(cpp) include(python) include(java) include(dotnet) + +# Since samples mix all languages we must parse them once we have included all +# .cmake files +foreach(SAMPLES IN ITEMS algorithms graph linear_solver constraint_solver sat) + add_subdirectory(ortools/${SAMPLES}/samples) +endforeach() diff --git a/ortools/algorithms/samples/CMakeLists.txt b/ortools/algorithms/samples/CMakeLists.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/ortools/constraint_solver/samples/CMakeLists.txt b/ortools/constraint_solver/samples/CMakeLists.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/ortools/graph/samples/CMakeLists.txt b/ortools/graph/samples/CMakeLists.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/ortools/linear_solver/samples/CMakeLists.txt b/ortools/linear_solver/samples/CMakeLists.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/ortools/sat/samples/CMakeLists.txt b/ortools/sat/samples/CMakeLists.txt new file mode 100644 index 0000000000..e69de29bb2