Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
jgillis committed Jun 24, 2021
1 parent 2397932 commit b72e52a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion matlab/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,20 @@ endif()

set_target_properties(mex mx ut eng PROPERTIES CXX_STANDARD 11)


if(${CMAKE_GENERATOR} MATCHES "Visual Studio*")
set(RUNTIME_DIR extern/lib/win32/microsoft)
else()
set(RUNTIME_DIR bin)
endif()

install(TARGETS mex mx ut eng EXPORT matlabTargets
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
RUNTIME DESTINATION ${RUNTIME_DIR}
INCLUDES DESTINATION include)


add_library(matlab INTERFACE)
target_link_libraries(matlab INTERFACE mex mx ut eng)

Expand Down

0 comments on commit b72e52a

Please sign in to comment.