0027290: CMake configuration files for OCCT
[occt.git] / adm / templates / OpenCASCADEConfig.cmake.in
CommitLineData
2e48c1cb 1#-----------------------------------------------------------------------------
2#
3# OpenCASCADEConfig.cmake - OpenCASCADE CMake configuration file for external projects.
4#
5# This file is configured by OpenCASCADE.
6#
7
8# The OpenCASCADE version number
9set (OpenCASCADE_MAJOR_VERSION "@OCC_VERSION_MAJOR@")
10set (OpenCASCADE_MINOR_VERSION "@OCC_VERSION_MINOR@")
11set (OpenCASCADE_MAINTENANCE_VERSION "@OCC_VERSION_MAINTENANCE@")
12set (OpenCASCADE_DEVELOPMENT_VERSION "@OCC_VERSION_DEVELOPMENT@")
13
14# Compute the installation prefix from this OpenCASCADEConfig.cmake file location.
15# This file should be always installed three levels below install dir:
16# - in UNIX style: lib/cmake/opencascade-<version>
17# - in Windows style: win64/vc10/lib
18get_filename_component (OpenCASCADE_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
19get_filename_component (OpenCASCADE_INSTALL_PREFIX "${OpenCASCADE_INSTALL_PREFIX}" PATH)
20get_filename_component (OpenCASCADE_INSTALL_PREFIX "${OpenCASCADE_INSTALL_PREFIX}" PATH)
21get_filename_component (OpenCASCADE_INSTALL_PREFIX "${OpenCASCADE_INSTALL_PREFIX}" PATH)
22
23# Set OpenCASCADE paths to headers, binaries, libraries, resources, tests, samples, data
24set (OpenCASCADE_BINARY_DIR "${OpenCASCADE_INSTALL_PREFIX}/@INSTALL_DIR_BIN@")
25set (OpenCASCADE_LIBRARY_DIR "${OpenCASCADE_INSTALL_PREFIX}/@INSTALL_DIR_LIB@")
26set (OpenCASCADE_SCRIPT_DIR "${OpenCASCADE_INSTALL_PREFIX}/@INSTALL_DIR_SCRIPT@")
27set (OpenCASCADE_INCLUDE_DIR "${OpenCASCADE_INSTALL_PREFIX}/@INSTALL_DIR_INCLUDE@")
28set (OpenCASCADE_RESOURCE_DIR "${OpenCASCADE_INSTALL_PREFIX}/@INSTALL_DIR_RESOURCE@")
29
30# The C and C++ flags added by OpenCASCADE to the cmake-configured flags.
31set (OpenCASCADE_C_FLAGS "@CMAKE_C_FLAGS@")
32set (OpenCASCADE_CXX_FLAGS "@CMAKE_CXX_FLAGS@")
33@SET_OpenCASCADE_LINKER_FLAGS@
34
35# List of available OpenCASCADE modules.
36set (OpenCASCADE_MODULES @OCCT_MODULES_ENABLED@)
37
38# List of available OpenCASCADE libraries.
39set (OpenCASCADE_LIBRARIES @OCCT_LIBRARIES@)
40
41# OpenCASCADE global configuration options.
42set (OpenCASCADE_COMPILER "@COMPILER@")
43set (OpenCASCADE_BUILD_WITH_DEBUG @BUILD_WITH_DEBUG@)
44set (OpenCASCADE_BUILD_SHARED_LIBS @BUILD_SHARED_LIBS@)
45@SET_OpenCASCADE_BUILD_TYPE@
46
47# Use of third-party libraries
48set (OpenCASCADE_WITH_TCL @USE_TCL@)
49set (OpenCASCADE_WITH_FREETYPE @USE_FREETYPE@)
50set (OpenCASCADE_WITH_FREEIMAGE @USE_FREEIMAGE@)
51set (OpenCASCADE_WITH_GL2PS @USE_GL2PS@)
52set (OpenCASCADE_WITH_TBB @USE_TBB@)
53set (OpenCASCADE_WITH_VTK @USE_VTK@)
54@SET_OpenCASCADE_WITH_D3D@
55@SET_OpenCASCADE_WITH_GLX@