Skip to content

Commit

Permalink
Extended macro to add mcg files
Browse files Browse the repository at this point in the history
  • Loading branch information
hkhauke committed Feb 23, 2024
1 parent 96ab183 commit 18b509e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cmake/macros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,13 @@ macro(JVX_ACTIVATE_VERSION_MATLAB project_name local_project_options)
if(${local_project_options} MATCHES "JVX_EXTERNAL_CALL_ENABLED")
set(LOCAL_COMPILE_DEFINITIONS "${LOCAL_COMPILE_DEFINITIONS};${local_project_options}")
include_directories(${JVX_BASE_LIBS_INCLUDE_PATH}/jvxLexternalCall/include)
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/codeGen/export_project.mcg)
set(LOCAL_MCG_FILES ${CMAKE_CURRENT_SOURCE_DIR}/codeGen/export_project.mcg)
set(JVX_MCG_FILE_NAME ${CMAKE_CURRENT_SOURCE_DIR}/codeGen/export_project.mcg)
if(JVX_MCG_LOCAL_FILE)
set(JVX_MCG_FILE_NAME ${JVX_MCG_LOCAL_FILE})
endif()
if(EXISTS ${JVX_MCG_FILE_NAME})
message("--> MCG code generation running on file(s) ${JVX_MCG_FILE_NAME}")
set(LOCAL_MCG_FILES ${JVX_MCG_FILE_NAME})
set(LOCAL_SOURCES ${LOCAL_SOURCES} ${LOCAL_MCG_FILES})
endif()
set(LOCAL_LIBS ${LOCAL_LIBS} jvxLexternalCall_static)
Expand Down

0 comments on commit 18b509e

Please sign in to comment.