CMakeLists.txt 1.08 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
cmake_minimum_required( VERSION 2.8 )

if( NOT VA_COMMON_BUILD )

	project( VAMatlab )
	list( APPEND CMAKE_MODULE_PATH "$ENV{VISTA_CMAKE_COMMON}" )
	include( VistaCommon )
	
endif()

vista_use_package( VABase REQUIRED FIND_DEPENDENCIES )
vista_use_package( VACore REQUIRED FIND_DEPENDENCIES )
vista_use_package( VANet REQUIRED FIND_DEPENDENCIES )
14 15
vista_use_package( Matlab REQUIRED FIND_DEPENDENCIES )
vista_use_package( NatNetSDK REQUIRED )
16 17 18

add_definitions( -DVABASE_DLL -DVANET_DLL -DVACORE_DLL )

19 20 21 22 23 24 25 26 27 28
set( VAMATLAB_SRC 
	"src/FunctionMappings.h"
	"src/MatlabHelpers.h"
	"src/MatlabHelpers.cpp"
	"src/VAMatlabConnection.cpp"
	"src/VAMatlabConnection.h"
	"src/VAMatlabExecutable.cpp"
	"src/VAMatlabTracking.h"
	"src/VAMatlabTracking.cpp" )

29
add_executable( VAMatlab ${VAMATLAB_SRC} VAMatlab.def )
30 31 32 33 34 35 36
target_link_libraries( VAMatlab ${VISTA_USE_PACKAGE_LIBRARIES} )

vista_configure_app( VAMatlab )
vista_install( VAMatlab )
vista_create_default_info_file( VAMatlab )

set_property( TARGET VAMatlab PROPERTY FOLDER "ITABindings" )
37
set_target_properties( VAMatlab PROPERTIES SUFFIX ".${Matlab_MEX_EXTENSION}")