forked from Exiv2/exiv2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- adds a cmake config - adds userpaths - different release/debug targets for windows
- Loading branch information
1 parent
70f9405
commit c921770
Showing
6 changed files
with
93 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,4 @@ test/tmp/* | |
doc/html | ||
|
||
contrib/vms/.vagrant | ||
CmakeUserPaths.cmake |
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,25 @@ | ||
# If you want to use prefix paths with cmake, copy and rename this file to CMakeUserPaths.cmake | ||
# Do not add this file to GIT! | ||
|
||
IF (CMAKE_CL_64) | ||
|
||
# we use opencv's zlib | ||
SET(ZLIB_BUILD_PATH "C:/coding/3rd-party/opencv/build2017-x64/3rdparty") | ||
|
||
# add the expat build | ||
SET(EXPAT_BUILD_PATH "C:/coding/3rd-party/expat/build2017-x64/") | ||
ELSE() | ||
|
||
# we use opencv's zlib | ||
SET(ZLIB_BUILD_PATH "C:/coding/3rd-party/opencv/build2017-x86/3rdparty") | ||
|
||
# add the expat build | ||
SET(EXPAT_BUILD_PATH "C:/coding/3rd-party/expat/build2017-x86/") | ||
ENDIF() | ||
|
||
SET(ZLIB_INCLUDE_DIR "C:/coding/3rd-party/opencv/3rdparty/zlib") | ||
SET(ZLIB_LIBRARY_DEBUG "${ZLIB_BUILD_PATH}/lib/Debug/zlibd.lib") | ||
SET(ZLIB_LIBRARY_RELEASE "${ZLIB_BUILD_PATH}/lib/Release/zlib.lib") | ||
|
||
SET(EXPAT_INCLUDE_DIR "C:/coding/3rd-party/expat/lib") | ||
SET(EXPAT_LIBRARY "${EXPAT_BUILD_PATH}/Release/expat.lib") |
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,25 @@ | ||
# Building exiv2 for nomacs | ||
|
||
## Build exiv2 (Windows) | ||
|
||
### Compile dependencies | ||
|
||
- [expat](https://github.com/nomacs/expat) (needed for exiv2) | ||
- [OpenCV](https://github.com/TUWien/opencv) (>= 3.4) _optional_ | ||
|
||
### Compile Exiv2 | ||
|
||
- copy `CMakeUserPathsGit.cmake` and rename it to `CMakeUserPaths.cmake` | ||
- add your library paths to the `${CMAKE_PREFIX_PATH}` in `CMakeUserPaths.cmake` | ||
- Open CMake GUI | ||
- set this folder to `where is the source code` | ||
- choose a build folder (e.g. `build2019-x64`) | ||
- Hit `Configure`then `Generate` | ||
- Open the Project | ||
- Compile the Solution (build Release and Debug) | ||
- You should now have an `exiv2.dll` in $YOUR_EXIV2_BUILD_PATH$/bin | ||
- In the `CMakeUserPaths.cmake` of your [nomacs](https://github.com/nomacs/nomacs) project, add this path: | ||
|
||
```cmake | ||
SET(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} "$EXIV2_PATH$/build2017-x64/") | ||
``` |
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,15 @@ | ||
# ** File generated automatically, do not modify ** | ||
|
||
SET(EXIV2_INCLUDE_DIRS @EXIV2_INCLUDE_DIRS@) | ||
SET(EXIV2_LIBS @EXIV2_LIBS@) | ||
SET(EXIV2_BUILD_PATH @CMAKE_CURRENT_BINARY_DIR@) | ||
SET(EXIV2_PROJECT_NAME @PROJECT_NAME@) | ||
SET(EXIV2_VERSION @PROJECT_VERSION@) | ||
|
||
SET(EXPAT_BUILD_PATH @EXPAT_BUILD_PATH@) | ||
|
||
IF(EXIV2_INCLUDE_DIRS) | ||
SET(EXIV_FOUND true) | ||
ELSE() | ||
SET(EXIV_FOUND "EXIV_FOUND-NOTFOUND") | ||
ENDIF() |