1# =================================================================
2# siconos configuration file.
3# Check https://cmake.org/cmake/help/latest/manual/cmake-packages.7.html#creating-packages
4# This file has been generated during siconos install and
5# may be used by another cmake project to retrieve all the configuration variables
6# of siconos.
7#
8#
9# Usage :
10#
11# find_package(siconos)
12#  ... define some target ...
13# target_link_libraries(my_target ${siconos_LIBRARIES})
14#
15# A call to find_package(siconos) will define targets
16# Siconos::<component> with component = externals, numerics, kernel ...
17#
18
19@PACKAGE_INIT@
20
21include(CMakeFindDependencyMacro)
22
23# Name of the siconos package
24set(PACKAGE_NAME siconos)
25
26# set path to siconos installation
27set_and_check(siconos_ROOT "@CMAKE_INSTALL_PREFIX@")
28set_and_check(siconos_SCRIPT "@CMAKE_INSTALL_PREFIX@/bin/siconos")
29
30# set list of targets build by siconos project
31set(installed_targets "@installed_targets@")
32
33# Path (relative to siconos install) to cmake extra tools
34set(SICONOS_CMAKE_MODULE_PATH @CMAKE_INSTALL_PREFIX@/@ConfigPackageLocation@)
35list(APPEND CMAKE_MODULE_PATH ${SICONOS_CMAKE_MODULE_PATH})
36
37set(CMAKE_CXX_STANDARD @CMAKE_CXX_STANDARD@)
38
39# --- Siconos extra components or options ---
40set(HAS_PYTHON_WRAPPER @WITH_PYTHON_WRAPPER@)
41if(HAS_PYTHON_WRAPPER)
42  set(PYTHON_EXECUTABLE  @PYTHON_EXECUTABLE@)
43  set(Python3_EXECUTABLE @Python3_EXECUTABLE@)
44endif()
45
46# --- Numerics component extras ---
47set(HAS_ONE_LP_SOLVER @HAS_ONE_LP_SOLVER@)
48
49# --- Mechanics component extras ---
50# mechanics component with bullet?
51set(SICONOS_HAS_BULLET @SICONOS_HAS_BULLET@)
52
53# mechanics (and/or mechanisms) component with oce?
54set(SICONOS_HAS_OCE @SICONOS_HAS_OCE@)
55
56if(@WITH_FCLIB@)
57  #if(${CMAKE_VERSION} VERSION_GREATER "3.12.0")
58    set(FCLIB_ROOT @FCLIB_ROOT@)
59  #else()
60  if(${CMAKE_VERSION} VERSION_LESS "3.13.0")
61    set(FCLIB_DIR @FCLIB_DIR@)
62  endif()
63
64  # Look for fclib in default path, FCLIB_DIR (cmake <3.12)
65  # and/or FCLIB_ROOT (cmake >= 3.12).
66  find_dependency(FCLIB 3.0.0 CONFIG REQUIRED)
67endif()
68
69# include siconos project targets
70include("${CMAKE_CURRENT_LIST_DIR}/siconosTargets.cmake")
71
72if(${mechanisms_installed})
73  set_and_check(siconos_mechanisms_SCRIPT "@CMAKE_INSTALL_PREFIX@/bin/siconos_mechanisms")
74endif()
75
76# --- Final check to set (or not) siconos_FOUND, siconos_numerics_FOUND and so on
77check_required_components(siconos)
78
79
80