CMakeLists.txt 1.11 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
set( VAMATLAB_SRC
20 21 22 23 24 25 26 27 28
	"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_library( VAMatlab ${VAMATLAB_SRC} VAMatlab.def )
30 31
target_link_libraries( VAMatlab ${VISTA_USE_PACKAGE_LIBRARIES} )

32
vista_configure_lib( VAMatlab )
33 34
vista_install( VAMatlab )
vista_create_default_info_file( VAMatlab )
35
vista_create_cmake_configs( VAMatlab )
36 37

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