1
2# The inference library requires the optimization library
3if(Inference_build)
4  set(Optimization_build ON)
5endif(Inference_build)
6
7# If incremental approximation is needed, make sure nlopt is available
8IF(NOT MUQ_USE_NLOPT AND IncrementalApproximation_build)
9	message(WARNING "IncrementalApproximation explicitly requires NLOPT.  NLOPT was not found, so IncrementalApproximation will not be compiled.")
10	set(IncrementalApproximation_build OFF)
11	set(IncrementalApproximation_tests OFF)
12endif()
13
14
15# If there is no gtest, turn off all tests
16if(NOT MUQ_USE_GTEST)
17  set(Inference_tests OFF)
18  set(Optimization_tests OFF)
19  set(Approximation_tests OFF)
20  set(Geostats_tests OFF)
21  set(UtilitiesAndModelling_tests OFF)
22  set(PolynomialChaos_tests OFF)
23  message(WARNING "MUQ_USE_GTEST is OFF. Thus, all tests has been turned off.")
24endif(NOT MUQ_USE_GTEST)
25