Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
VAMatlab
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Institute of Technical Acoustics (ITA)
VAMatlab
Commits
b96380dc
Commit
b96380dc
authored
Oct 11, 2017
by
Dipl.-Ing. Jonas Stienen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refining OptiTrack support vor VAMatlab, not yet ready though
parent
cfc59659
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
7 deletions
+20
-7
CMakeLists.txt
CMakeLists.txt
+20
-7
No files found.
CMakeLists.txt
View file @
b96380dc
...
...
@@ -20,8 +20,16 @@ if( NOT DEFINED ITA_VAMATLAB_SHOW_BANNER )
set
(
ITA_VAMATLAB_SHOW_BANNER ON CACHE BOOL
"Show VA banner on Matlab init"
)
endif
(
NOT DEFINED ITA_VAMATLAB_SHOW_BANNER
)
if
(
NOT DEFINED ITA_MATLAB_DEPLOY_MATLAB_EXECUTABLE
)
set
(
ITA_MATLAB_DEPLOY_MATLAB_EXECUTABLE ON CACHE BOOL
"Install VAMatlab executable into deploy binary directory"
)
if
(
NOT DEFINED ITA_VAMATLAB_DEPLOY_MATLAB_EXECUTABLE
)
set
(
ITA_VAMATLAB_DEPLOY_MATLAB_EXECUTABLE ON CACHE BOOL
"Install VAMatlab executable into deploy binary directory"
)
endif
(
)
if
(
NOT DEFINED ITA_VAMATLAB_BUILD_WITH_OPTITRACK_TRACKING_SUPPORT
)
set
(
ITA_VAMATLAB_BUILD_WITH_OPTITRACK_TRACKING_SUPPORT ON CACHE BOOL
"Activate integrated OptiTrack tracking support"
)
endif
(
)
if
(
NOT DEFINED ITA_VAMATLAB_POSTBUILD_CREATE_MATLAB_CLASS
)
set
(
ITA_VAMATLAB_POSTBUILD_CREATE_MATLAB_CLASS OFF CACHE BOOL
"Auto-create Matlab convenience class after build [for future use]"
)
endif
(
)
vista_use_package
(
VABase REQUIRED FIND_DEPENDENCIES
)
...
...
@@ -47,7 +55,7 @@ if( NOT BUILD_SHARED_LIBS )
endif
(
)
if
(
ITA_VA
_
MATLAB_BUILD_WITH_INTERNAL_CORE
)
if
(
ITA_VAMATLAB_BUILD_WITH_INTERNAL_CORE
)
vista_use_package
(
VACore REQUIRED FIND_DEPENDENCIES
)
add_definitions
(
-DVAMATLAB_INTERNAL_CORE
)
endif
(
)
...
...
@@ -58,6 +66,9 @@ if( ITA_VAMATLAB_SHOW_BANNER )
add_definitions
(
-DVAMATLAB_SHOW_BANNER
)
endif
(
)
if
(
ITA_VAMATLAB_BUILD_WITH_OPTITRACK_TRACKING_SUPPORT
)
add_definitions
(
-DVAMATLAB_WITH_OPTITRACK
)
endif
(
)
# Sources
set
(
VAMATLAB_SRC
...
...
@@ -67,8 +78,10 @@ set( VAMATLAB_SRC
"src/VAMatlabConnection.cpp"
"src/VAMatlabConnection.h"
"src/VAMatlabExecutable.cpp"
"src/VAMatlabTracking.h"
"src/VAMatlabTracking.cpp"
)
)
if
(
ITA_VAMATLAB_BUILD_WITH_OPTITRACK_TRACKING_SUPPORT
)
list
(
APPEND VAMATLAB_SRC
"src/VAMatlabTracking.h"
"src/VAMatlabTracking.cpp"
)
endif
(
)
add_library
(
VAMatlab SHARED
${
VAMATLAB_SRC
}
VAMatlab.def
)
target_link_libraries
(
VAMatlab
${
VISTA_USE_PACKAGE_LIBRARIES
}
)
...
...
@@ -85,7 +98,7 @@ vista_create_cmake_configs( VAMatlab )
set_property
(
TARGET VAMatlab PROPERTY FOLDER
"VA/Bindings"
)
set_target_properties
(
VAMatlab PROPERTIES SUFFIX
".
${
MATLAB_MEX_EXTENSION
}
"
)
if
(
ITA_MATLAB_DEPLOY_MATLAB_EXECUTABLE
)
if
(
ITA_
VA
MATLAB_DEPLOY_MATLAB_EXECUTABLE
)
install
(
FILES
"
${
CMAKE_BINARY_DIR
}
/lib/VAMatlab.
${
MATLAB_MEX_EXTENSION
}
"
DESTINATION
"bin"
)
endif
(
)
...
...
@@ -103,7 +116,7 @@ install( FILES "matlab/itaVA_example_simple.m" DESTINATION "matlab" )
install
(
FILES
"matlab/itaVA_example_tracked_listener.m"
DESTINATION
"matlab"
)
# Build Matlab class using Matlab (future work)
if
(
ITA_VA
_
MATLAB_POSTBUILD_CREATE_MATLAB_CLASS
)
if
(
ITA_VAMATLAB_POSTBUILD_CREATE_MATLAB_CLASS
)
set
(
MATLAB_BUILD_CLASS_COMMAND
"matlab -nodisplay -nosplash -nodesktop -r
\"
run( 'matlab/itaVA_build_absolute.m' )
\"
"
)
add_custom_command
(
TARGET VAMatlab POST_BUILD COMMAND
${
MATLAB_BUILD_CLASS_COMMAND
}
WORKING_DIRECTORY
"
${
CMAKE_CURRENT_SOURCE_DIR
}
"
COMMENT
"Running matlab itaVA installer"
VERBATIM
)
else
(
)
...
...
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