0027301: CMake: export targets for OCCT
authorski <ski@opencascade.com>
Mon, 4 Apr 2016 16:51:24 +0000 (19:51 +0300)
committerabv <abv@opencascade.com>
Tue, 5 Apr 2016 12:52:28 +0000 (15:52 +0300)
commitada9ef40c2dad256a72b8e4bc429d37b1c929f68
treedda2fa9aab8284939851d4f295beb7dbb1e2aba3
parent65ebcbd01a183bc1aa16e85225f6b91de3892796
0027301: CMake: export targets for OCCT

Enabled creation of CMake target files (one per module) for OCCT at install time.
Variables enumerating available OCCT toolkits by module are added in CMake configuration file.
Added check of availability of OCCT modules specified by OpenCASCADE_FIND_COMPONENTS variable.
Location of CMake configuration and target files in Windows layout is changed to $INSTALL_DIR/cmake (thus common for all configurations), to be found by standard search logic of CMake find_package() function.
CMakeLists.txt
adm/cmake/occt_macros.cmake
adm/cmake/occt_toolkit.cmake
adm/templates/OpenCASCADEConfig.cmake.in