Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
ftl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicolas Pope
ftl
Commits
a39647ae
Commit
a39647ae
authored
5 years ago
by
Sebastian Hahta
Committed by
Nicolas Pope
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
feature/openvr windows
parent
9e5e1b76
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
CMakeLists.txt
+41
-10
41 additions, 10 deletions
CMakeLists.txt
applications/gui/CMakeLists.txt
+1
-1
1 addition, 1 deletion
applications/gui/CMakeLists.txt
with
43 additions
and
12 deletions
.gitlab-ci.yml
+
1
−
1
View file @
a39647ae
...
...
@@ -6,7 +6,7 @@
variables
:
GIT_SUBMODULE_STRATEGY
:
recursive
CMAKE_ARGS_WINDOWS
:
'
-DCMAKE_GENERATOR_PLATFORM=x64
-DPORTAUDIO_DIR="D:/Build/portaudio"
-DNVPIPE_DIR="D:/Build/NvPipe"
-DEigen3_DIR="C:/Program
Files
(x86)/Eigen3/share/eigen3/cmake"
-DOpenCV_DIR="D:/Build/opencv-4.1.1"
-DCUDA_TOOLKIT_ROOT_DIR="C:/Program
Files/NVIDIA
GPU
Computing
Toolkit/CUDA/v10.1"'
CMAKE_ARGS_WINDOWS
:
'
-DCMAKE_GENERATOR_PLATFORM=x64
-DPORTAUDIO_DIR="D:/Build/portaudio"
-DNVPIPE_DIR="D:/Build/NvPipe"
-DEigen3_DIR="C:/Program
Files
(x86)/Eigen3/share/eigen3/cmake"
-DOpenCV_DIR="D:/Build/opencv-4.1.1"
-DCUDA_TOOLKIT_ROOT_DIR="C:/Program
Files/NVIDIA
GPU
Computing
Toolkit/CUDA/v10.1"
-DWITH_OPENVR=TRUE
-DOPENVR_DIR="D:/Build/OpenVRSDK"
'
stages
:
-
all
...
...
This diff is collapsed.
Click to expand it.
CMakeLists.txt
+
41
−
10
View file @
a39647ae
...
...
@@ -65,20 +65,51 @@ endif()
# set(HAVE_LIBARCHIVE true)
#endif()
if
(
WITH_OPENVR
)
#
if (WITH_OPENVR)
## OpenVR API path
find_library
(
OPENVR_LIBRARIES
NAMES
openvr_api
)
set
(
OPENVR_INCLUDE_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
/../headers
)
if
(
OPENVR_LIBRARIES
)
message
(
STATUS
"Found OpenVR:
${
OPENVR_LIBRARIES
}
"
)
set
(
HAVE_OPENVR true
)
# find_library(OPENVR_LIBRARIES
# NAMES
# openvr_api
# )
# set(OPENVR_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../headers)
#
# if (OPENVR_LIBRARIES)
# message(STATUS "Found OpenVR: ${OPENVR_LIBRARIES}")
# set(HAVE_OPENVR true)
# endif()
#endif()
# ============== OPEN VR =======================================================
if
(
WITH_OPENVR
)
find_library
(
OPENVR_LIBRARY NAMES openvr_api libopenvr_api openvr_api64 PATHS
${
OPENVR_DIR
}
PATH_SUFFIXES lib
)
if
(
OPENVR_LIBRARY
)
set
(
HAVE_OPENVR TRUE
)
add_library
(
openvr UNKNOWN IMPORTED
)
#set_property(TARGET nanogui PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${NANOGUI_EXTRA_INCS})
set_property
(
TARGET openvr PROPERTY IMPORTED_LOCATION
${
OPENVR_LIBRARY
}
)
message
(
STATUS
"Found OpenVR:
${
OPENVR_LIBRARY
}
"
)
if
(
WIN32
)
# Find include
find_path
(
OPENVR_INCLUDE_DIRS
NAMES openvr/openvr.h
PATHS
"C:/Program Files/OpenVRSDK"
"C:/Program Files (x86)/OpenVRSDK"
${
OPENVR_DIR
}
PATH_SUFFIXES include
)
set_property
(
TARGET openvr PROPERTY INTERFACE_INCLUDE_DIRECTORIES
${
OPENVR_INCLUDE_DIRS
}
)
endif
()
else
()
set
(
OPENVR_LIBRARY
""
)
add_library
(
openvr INTERFACE
)
endif
()
else
()
set
(
OPENVR_LIBRARY
""
)
add_library
(
openvr INTERFACE
)
endif
()
# ==============================================================================
if
(
WITH_FIXSTARS
)
find_package
(
LibSGM
)
if
(
LibSGM_FOUND
)
...
...
This diff is collapsed.
Click to expand it.
applications/gui/CMakeLists.txt
+
1
−
1
View file @
a39647ae
...
...
@@ -40,6 +40,6 @@ target_include_directories(ftl-gui PUBLIC
#endif()
#target_include_directories(cv-node PUBLIC ${PROJECT_SOURCE_DIR}/include)
target_link_libraries
(
ftl-gui ftlcommon ftlctrl ftlrgbd ftlstreams ftlrender Threads::Threads
${
OpenCV_LIBS
}
${
OPENVR_LIBRARIES
}
glog::glog
ftlnet nanogui
${
NANOGUI_EXTRA_LIBS
}
)
target_link_libraries
(
ftl-gui ftlcommon ftlctrl ftlrgbd ftlstreams ftlrender Threads::Threads
${
OpenCV_LIBS
}
openvr
ftlnet nanogui
${
NANOGUI_EXTRA_LIBS
}
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment