-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e9b0f7a
commit 3d3460c
Showing
6 changed files
with
5 additions
and
203 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
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 |
---|---|---|
@@ -1,50 +1,4 @@ | ||
|
||
# Example of producing a minimal static library | ||
|
||
Minimal means: | ||
- no python | ||
- no FreeImage | ||
- no CURL network service | ||
- no Gui | ||
- just flat OpenVisus IDX (i.e. Kernel and DB) | ||
|
||
|
||
(OPTIONAL) Set the path to find cmake: | ||
|
||
``` | ||
set PATH="C:\Program Files\CMake\bin";%PATH | ||
``` | ||
|
||
Choose the configuration you want to try (DO NOT mix Debug with Release and viceversa): | ||
|
||
``` | ||
set CONFIG=Release | ||
``` | ||
|
||
Compile OpenVisus static library (NOTE I am compiling/installing all configurations just in case): | ||
|
||
``` | ||
mkdir build_minimal | ||
cd build_minimal | ||
cmake -G "Visual Studio 16 2019" -A "x64" -DVISUS_MINIMAL=1 ../ | ||
cmake --build . --target ALL_BUILD --config %CONFIG% | ||
cmake --build . --target INSTALL --config %CONFIG% | ||
set OPENVISUS_DIR=%cd%\%CONFIG%\OpenVisus | ||
cd .. | ||
``` | ||
|
||
Then consume the library linking: | ||
|
||
``` | ||
cd Executable\test_static_linking | ||
mkdir build | ||
cd build | ||
cmake -G "Visual Studio 16 2019" -A "x64" -DOPENVISUS_DIR=%OPENVISUS_DIR% ../ | ||
cmake --build . --target ALL_BUILD --config %CONFIG% | ||
``` | ||
|
||
|
||
|
||
|
||
|
||
|
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
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