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
ed779556
Commit
ed779556
authored
Feb 03, 2011
by
Maria Dimashova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved an include dirs setting to the root cmake file
parent
6590711b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
14 deletions
+19
-14
CMakeLists.txt
CMakeLists.txt
+19
-8
CMakeLists.txt
modules/highgui/CMakeLists.txt
+0
-6
No files found.
CMakeLists.txt
View file @
ed779556
...
...
@@ -782,18 +782,29 @@ if(WITH_OPENNI)
unset
(
OPENNI_LIBRARY CACHE
)
unset
(
PRIME_SENSOR_MODULES_FOR_OPENNI CACHE
)
find_library
(
OPENNI_LIBRARY
"OpenNI"
PATHS
"/usr/lib"
"c:/Program Files/OpenNI/Lib"
DOC
"OpenNI library"
)
if
(
OPENNI_LIBRARY
)
if
(
OPENNI_LIBRARY
)
set
(
HAVE_OPENNI TRUE
)
# set OpenNI include directory
if
(
WIN32
)
set
(
OPENNI_INCLUDE_DIR
"c:/Program Files/OpenNI/Include"
)
elseif
(
UNIX OR APPLE
)
set
(
OPENNI_INCLUDE_DIR
"/usr/include/ni"
)
endif
()
# the check: are PrimeSensor Modules for OpenNI installed?
if
(
WIN32
)
find_file
(
PRIME_SENSOR_MODULES_FOR_OPENNI
"XnCore.dll"
PATHS
"c:/Program Files/Prime Sense/Sensor/Bin"
DOC
"Core library of PrimeSensor Modules for OpenNI"
)
elseif
(
UNIX OR APPLE
)
find_library
(
PRIME_SENSOR_MODULES_FOR_OPENNI
"XnCore"
PATHS
"/usr/lib"
DOC
"Core library of PrimeSensor Modules for OpenNI"
)
endif
()
if
(
PRIME_SENSOR_MODULES_FOR_OPENNI
)
if
(
WIN32
)
find_file
(
PRIME_SENSOR_MODULES_FOR_OPENNI
"XnCore.dll"
PATHS
"c:/Program Files/Prime Sense/Sensor/Bin"
DOC
"Core library of PrimeSensor Modules for OpenNI"
)
elseif
(
UNIX OR APPLE
)
find_library
(
PRIME_SENSOR_MODULES_FOR_OPENNI
"XnCore"
PATHS
"/usr/lib"
DOC
"Core library of PrimeSensor Modules for OpenNI"
)
endif
()
if
(
PRIME_SENSOR_MODULES_FOR_OPENNI
)
set
(
HAVE_PRIME_SENSOR_FOR_OPENNI TRUE
)
endif
()
endif
()
endif
()
#if(OPENNI_LIBRARY)
endif
()
#if(WITH_OPENNI)
############################## Eigen2 ##############################
...
...
modules/highgui/CMakeLists.txt
View file @
ed779556
...
...
@@ -177,12 +177,6 @@ endif()
#OpenNI
if
(
WITH_OPENNI AND HAVE_OPENNI
)
set
(
highgui_srcs
${
highgui_srcs
}
src/cap_openni.cpp
)
if
(
WIN32
)
set
(
OPENNI_INCLUDE_DIR
"c:/Program Files/OpenNI/Include"
)
elseif
(
UNIX OR APPLE
)
set
(
OPENNI_INCLUDE_DIR
"/usr/include/ni"
)
endif
()
include_directories
(
${
OPENNI_INCLUDE_DIR
}
)
endif
()
...
...
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