Skip to content

Commit

Permalink
removing absolute paths from cmake scripts, added openni xml file to …
Browse files Browse the repository at this point in the history
…repo
  • Loading branch information
royshil committed Mar 5, 2012
1 parent 393d5f3 commit cc97059
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 17 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Expand Up @@ -5,13 +5,19 @@
*.swp
app/bin/*
*.pyc
new_cv/*
cv/*

# xcode noise
build/*
*.pbxuser
*.mode1v3
*.perspectivev3
# webkit-plugin-mac/build # precompiled version should be up at the repo
firebreath-plugin/build/*
firebreath-plugin/Debug/*
firebreath-plugin/FireBreath.build/*
webkit-plugin-mac/build/*

# old skool
.svn
Expand Down
1 change: 1 addition & 0 deletions firebreath-plugin/CMakeLists.txt
Expand Up @@ -17,6 +17,7 @@ file (GLOB GENERAL RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
[^.]*.h
[^.]*.hpp
[^.]*.cmake
${CMAKE_MODULE_PATH}/*
)

include_directories(${PLUGIN_INCLUDE_DIRS})
Expand Down
9 changes: 3 additions & 6 deletions firebreath-plugin/Mac/projectDef.cmake
Expand Up @@ -24,10 +24,8 @@ find_library(QUARTZ_CORE_FRAMEWORK QuartzCore)
find_library(CORE_FOUNDATION_FRAMEWORK CoreFoundation)

include_directories(${CORE_FOUNDATION_FRAMEWORK})
include_directories("/Users/royshilkrot/Downloads/NITE-Bin-MacOSX-v1.4.1.2/Include")
include_directories("/Users/royshilkrot/Downloads/OpenNI-Bin-MacOSX-v1.3.2.3/Include")

set(OPENNI_XML_FILE "/Users/royshilkrot/Downloads/NITE-Bin-MacOSX-v1.4.1.2/Data/Sample-Tracking.xml")
set(OPENNI_XML_FILE "Sample-Tracking.xml")
set_source_files_properties(
${OPENNI_XML_FILE}
PROPERTIES
Expand Down Expand Up @@ -55,7 +53,6 @@ target_link_libraries(${PROJECT_NAME}
${OPENGL_FRAMEWORK}
${QUARTZ_CORE_FRAMEWORK}
${CORE_FOUNDATION_FRAMEWORK}
/Users/royshilkrot/Downloads/OpenNI-Bin-MacOSX-v1.3.2.3/Lib/libOpenNI.dylib
/Users/royshilkrot/Downloads/NITE-Bin-MacOSX-v1.4.1.2/Bin/libXnVNite_1_4_1.dylib
/Users/royshilkrot/Downloads/NITE-Bin-MacOSX-v1.4.1.2/Bin/libXnVHandGenerator_1_4_1.dylib
${OpenNI_LIBS}
${NITE_LIBS}
)
23 changes: 23 additions & 0 deletions firebreath-plugin/Sample-Tracking.xml
@@ -0,0 +1,23 @@
<OpenNI>
<Licenses>
<License vendor="PrimeSense" key="insert key here"/>
</Licenses>
<Log writeToConsole="true" writeToFile="false">
<!-- 0 - Verbose, 1 - Info, 2 - Warning, 3 - Error (default) -->
<LogLevel value="3"/>
<Masks>
<Mask name="ALL" on="false"/>
</Masks>
<Dumps>
</Dumps>
</Log>
<ProductionNodes>
<Node type="Depth">
<Configuration>
<Mirror on="true"/>
</Configuration>
</Node>
<Node type="Gesture" />
<Node type="Hands" />
</ProductionNodes>
</OpenNI>
24 changes: 13 additions & 11 deletions firebreath-plugin/cmake/Modules/FindNITE.cmake
Expand Up @@ -50,19 +50,21 @@ find_library(NITE_LIBRARY
if(NITE_LIBRARY STREQUAL "NITE_LIBRARY-NOTFOUND")
message(STATUS "can't find NITE library, looking more aggressively")
foreach(NITE_LOOKUP_PATH ${NITE_LIB_SEARCH_PATHS})
file(GLOB NITE_LIBRARY "${NITE_LOOKUP_PATH}/*XnVNITE*")
file(GLOB NITE_LIBRARY "${NITE_LOOKUP_PATH}/*XnV*")
message(STATUS "looking in ${NITE_LOOKUP_PATH} resulted in ${NITE_LIBRARY}")
if(NOT ${NITE_LIBRARY} STREQUAL "")
#found NITE library
#but there may be many files found..
foreach(NITE_LIBRARY_FOUND ${NITE_LIBRARY})
string(REGEX MATCH "jni" FOUND_JNI_IN_FILE ${NITE_LIBRARY_FOUND})
if(NOT FOUND_JNI_IN_FILE)
set(NITE_LIBRARY ${NITE_LIBRARY_FOUND})
break()
endif()
endforeach()
if(NITE_LIBRARY)
# #found NITE library
# #but there may be many files found..
# foreach(NITE_LIBRARY_FOUND ${NITE_LIBRARY})
# message(STATUS "checking ${NITE_LIBRARY_FOUND}")
# string(REGEX MATCH "jni" FOUND_JNI_IN_FILE ${NITE_LIBRARY_FOUND})
# if(NOT FOUND_JNI_IN_FILE)
# set(NITE_LIBRARY_TMP ${NITE_LIBRARY_TMP} ${NITE_LIBRARY_FOUND})
# break()
# endif()
# endforeach()
break()
# set(NITE_LIBRARY ${NITE_LIBRARY_TMP})
endif()
endforeach()
endif()
Expand Down

0 comments on commit cc97059

Please sign in to comment.