File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -146,12 +146,13 @@ endif(BUILD_PYTHON_INTERFACE)
146
146
macro (create_demo source )
147
147
148
148
set (demo_name ${PROJECT_NAME} _${source} )
149
+ set (DEMO_ROOT "${PROJECT_SOURCE_DIR} /demos" )
149
150
add_executable (${demo_name} demos/${source} .cpp)
150
151
target_link_libraries (${demo_name} ${PROJECT_NAME} )
151
152
target_compile_definitions (
152
153
${demo_name}
153
- PUBLIC CONFIG_SOLO12_YAML="${PROJECT_SOURCE_DIR} /demos /config_solo12.yaml"
154
- PUBLIC CONFIG_TESTBENCH_YAML="${PROJECT_SOURCE_DIR} /demos /config_testbench.yaml" )
154
+ PUBLIC CONFIG_SOLO12_YAML="${DEMO_ROOT} /config_solo12.yaml"
155
+ PUBLIC CONFIG_TESTBENCH_YAML="${DEMO_ROOT} /config_testbench.yaml" )
155
156
install (TARGETS ${demo_name} DESTINATION bin)
156
157
157
158
endmacro (create_demo source )
You can’t perform that action at this time.
0 commit comments