Commit 2d99667a authored by Jonas Stienen's avatar Jonas Stienen
Browse files

Improving dependencies and deploy structure for VAMatlab

parent 3cf35029
......@@ -8,13 +8,25 @@ if( NOT VA_COMMON_BUILD )
endif()
if( NOT DEFINED ITA_VA_MATLAB_INSTALL_WITH_DLLS )
set( ITA_VA_MATLAB_INSTALL_WITH_DLLS ON CACHE BOOL "Install VAMatlab with depending DLLs (use with care)" )
endif( NOT DEFINED ITA_VA_MATLAB_INSTALL_WITH_DLLS )
if( NOT DEFINED ITA_VA_MATLAB_BUILD_WITH_INTERNAL_CORE )
set( ITA_VA_MATLAB_BUILD_WITH_INTERNAL_CORE OFF CACHE BOOL "Build a VACore into VAMatlab instead of using a network adapter (not recommended)" )
endif( NOT DEFINED ITA_VA_MATLAB_BUILD_WITH_INTERNAL_CORE )
vista_use_package( VABase REQUIRED FIND_DEPENDENCIES )
vista_use_package( VACore REQUIRED FIND_DEPENDENCIES )
vista_use_package( VANet REQUIRED FIND_DEPENDENCIES )
vista_use_package( Matlab REQUIRED FIND_DEPENDENCIES )
vista_use_package( NatNetSDK REQUIRED )
add_definitions( -DVABASE_DLL -DVANET_DLL -DVACORE_DLL )
add_definitions( -DVABASE_DLL -DVANET_DLL )
if( ITA_VA_MATLAB_BUILD_WITH_INTERNAL_CORE )
vista_use_package( VACore REQUIRED FIND_DEPENDENCIES )
add_definitions( -DVACORE_DLL -DVAMATLAB_INTERNAL_CORE )
endif( ITA_VA_MATLAB_BUILD_WITH_INTERNAL_CORE )
set( VAMATLAB_SRC
"src/FunctionMappings.h"
......@@ -36,3 +48,7 @@ vista_create_cmake_configs( VAMatlab )
set_property( TARGET VAMatlab PROPERTY FOLDER "ITABindings" )
set_target_properties( VAMatlab PROPERTIES SUFFIX ".${MATLAB_MEX_EXTENSION}")
if( ITA_VA_MATLAB_INSTALL_WITH_DLLS OR ITA_VA_INSTALL_WITH_DLLS )
vista_install_all_dlls( bin )
endif()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment