Files
ortools-clone/cmake/dotnet.cmake
Corentin Le Molgat a49b9143a4 Rework CMake dependencies management (Fix #1116)
- By default don't build dependencies simply call find_package()
- By default only build C++ library
- IF building Python, Java or .Net wrapper then force build dependencies
  - Build dependencies as STATIC
  - Build and Install (in CMAKE_BINARY_DIR) dependencies at configure time
2019-04-11 13:47:05 +02:00

11 lines
162 B
CMake

if(NOT BUILD_DOTNET)
return()
endif()
find_package(SWIG)
find_program (DOTNET_CLI NAMES dotnet)
if(BUILD_TESTING)
add_subdirectory(examples/dotnet)
endif()