-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support use of installed OpenCASCADE
This commit uses cmake to find installed OpenCASCADE libraries in system. If it found it will be used if it version fits to requirements. Otherwise the builtin one will be used. The `builtin` feature may be enabled to force use builtin OpenCASCADE.
- Loading branch information
Showing
4 changed files
with
119 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
cmake_minimum_required (VERSION 3.1 FATAL_ERROR) | ||
project (OpenCASCADEPackageConfig) | ||
find_package (OpenCASCADE REQUIRED) | ||
|
||
file (WRITE ${CMAKE_BINARY_DIR}/occ_info.txt | ||
"VERSION_MAJOR=${OpenCASCADE_MAJOR_VERSION}\n" | ||
"VERSION_MINOR=${OpenCASCADE_MINOR_VERSION}\n" | ||
"INCLUDE_DIR=${OpenCASCADE_INCLUDE_DIR}\n" | ||
"LIBRARY_DIR=${OpenCASCADE_LIBRARY_DIR}\n" | ||
"BUILD_SHARED_LIBS=${OpenCASCADE_BUILD_SHARED_LIBS}\n") | ||
|
||
install (FILES ${CMAKE_BINARY_DIR}/occ_info.txt TYPE DATA) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters