Skip to content

Commit

Permalink
Updated CMake template for using the new templated model driver
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Sep 28, 2018
1 parent 63aef13 commit cb5b358
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmake/CreateAutogeneratedCodeTargets.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ add_generated_code_lib(MODELNAME ${MDL_NAME})
# Set the target name for the custom driver
set(CODER_MAIN "CoderMain_${MDL_NAME}")

configure_file(
"${PROJECT_SOURCE_DIR}/src/driver.cpp.in"
"${CMAKE_CURRENT_BINARY_DIR}/driver.cpp"
@ONLY)

add_executable(${CODER_MAIN}
"${CMAKE_SOURCE_DIR}/src/driver.cpp"
"${CMAKE_CURRENT_BINARY_DIR}/driver.cpp"
)

target_link_libraries(${CODER_MAIN} PUBLIC ${MDL_NAME}_LIB)

0 comments on commit cb5b358

Please sign in to comment.