Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
ab221fb3
Commit
ab221fb3
authored
Mar 02, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More accurate cmake flags sets/unsets for 3rdparty libs
parent
06a6c585
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
10 deletions
+21
-10
OpenCVIOLibs.cmake
cmake/OpenCVIOLibs.cmake
+21
-10
No files found.
cmake/OpenCVIOLibs.cmake
View file @
ab221fb3
macro
(
unset_all
)
foreach
(
var
${
ARGN
}
)
unset
(
${
var
}
CACHE
)
endforeach
()
endmacro
()
################### zlib - required
if
(
BUILD_ZLIB
)
set
(
ZLIB_FOUND FALSE
)
unset_all
(
ZLIB_FOUND
)
else
()
if
(
ANDROID
)
set
(
ZLIB_FOUND TRUE
)
...
...
@@ -13,6 +19,8 @@ else()
endif
()
if
(
NOT ZLIB_FOUND
)
unset_all
(
ZLIB_LIBRARY ZLIB_LIBRARIES ZLIB_INCLUDE_DIR
)
set
(
ZLIB_LIBRARY zlib
)
set
(
ZLIB_LIBRARIES
${
ZLIB_LIBRARY
}
)
add_subdirectory
(
"
${
OpenCV_SOURCE_DIR
}
/3rdparty/zlib"
)
...
...
@@ -22,13 +30,15 @@ endif()
################### libtiff - optional (should be searched after zlib)
if
(
WITH_TIFF
)
if
(
BUILD_TIFF
)
set
(
TIFF_FOUND FALSE
)
unset_all
(
TIFF_FOUND
)
else
()
include
(
FindTIFF
)
endif
()
endif
()
if
(
WITH_TIFF AND NOT TIFF_FOUND
)
unset_all
(
TIFF_LIBRARY TIFF_LIBRARIES TIFF_INCLUDE_DIR
)
set
(
TIFF_LIBRARY libtiff
)
set
(
TIFF_LIBRARIES
${
TIFF_LIBRARY
}
)
add_subdirectory
(
"
${
OpenCV_SOURCE_DIR
}
/3rdparty/libtiff"
)
...
...
@@ -38,13 +48,15 @@ endif()
################### libjpeg - optional
if
(
WITH_JPEG
)
if
(
BUILD_JPEG
)
set
(
JPEG_FOUND FALSE
)
unset_all
(
JPEG_FOUND
)
else
()
include
(
FindJPEG
)
endif
()
endif
()
if
(
WITH_JPEG AND NOT JPEG_FOUND
)
unset_all
(
JPEG_LIBRARY JPEG_LIBRARIES JPEG_INCLUDE_DIR
)
set
(
JPEG_LIBRARY libjpeg
)
set
(
JPEG_LIBRARIES
${
JPEG_LIBRARY
}
)
add_subdirectory
(
"
${
OpenCV_SOURCE_DIR
}
/3rdparty/libjpeg"
)
...
...
@@ -54,13 +66,15 @@ endif()
################### libjasper - optional (should be searched after libjpeg)
if
(
WITH_JASPER
)
if
(
BUILD_JASPER
)
set
(
JASPER_FOUND FALSE
)
unset_all
(
JASPER_FOUND
)
else
()
include
(
FindJasper
)
endif
()
endif
()
if
(
WITH_JASPER AND NOT JASPER_FOUND
)
unset_all
(
JASPER_LIBRARY JASPER_LIBRARIES JASPER_INCLUDE_DIR
)
set
(
JASPER_LIBRARY libjasper
)
set
(
JASPER_LIBRARIES
${
JASPER_LIBRARY
}
)
add_subdirectory
(
"
${
OpenCV_SOURCE_DIR
}
/3rdparty/libjasper"
)
...
...
@@ -70,7 +84,7 @@ endif()
################### libpng - optional (should be searched after zlib)
if
(
WITH_PNG
)
if
(
BUILD_PNG
)
set
(
PNG_FOUND FALSE
)
unset_all
(
PNG_FOUND
)
else
()
include
(
FindPNG
)
if
(
PNG_FOUND
)
...
...
@@ -81,16 +95,13 @@ if(WITH_PNG)
endif
()
if
(
WITH_PNG AND NOT PNG_FOUND
)
unset_all
(
PNG_LIBRARY PNG_LIBRARIES PNG_INCLUDE_DIR PNG_PNG_INCLUDE_DIR HAVE_PNG_H HAVE_LIBPNG_PNG_H PNG_DEFINITIONS
)
set
(
PNG_LIBRARY libpng
)
set
(
PNG_LIBRARIES
${
PNG_LIBRARY
}
)
add_subdirectory
(
"
${
OpenCV_SOURCE_DIR
}
/3rdparty/libpng"
)
set
(
PNG_INCLUDE_DIR
"
${${
PNG_LIBRARY
}
_SOURCE_DIR
}
"
)
set
(
PNG_DEFINITIONS
""
)
unset
(
HAVE_LIBPNG_PNG_H CACHE
)
unset
(
HAVE_PNG_H CACHE
)
unset
(
HAVE_PNG_H CACHE
)
unset
(
PNG_LIBRARY CACHE
)
unset
(
PNG_PNG_INCLUDE_DIR CACHE
)
endif
()
################### OpenEXR - optional
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment