diff --git a/examples/C/src/modal_models/FurutaPendulum/FurutaPendulum.lf b/examples/C/src/modal_models/FurutaPendulum/FurutaPendulum.lf index 1af7c3e3..fe7969c3 100644 --- a/examples/C/src/modal_models/FurutaPendulum/FurutaPendulum.lf +++ b/examples/C/src/modal_models/FurutaPendulum/FurutaPendulum.lf @@ -16,7 +16,7 @@ target C { timeout: 3 secs, fast: true, - flags: "-lm", + cmake-include: "furuta.cmake", build: "./build_run_plot.sh FurutaPendulum" } diff --git a/examples/C/src/modal_models/FurutaPendulum/build_run_plot.sh b/examples/C/src/modal_models/FurutaPendulum/build_run_plot.sh index 1e8dc089..2f9325e1 100755 --- a/examples/C/src/modal_models/FurutaPendulum/build_run_plot.sh +++ b/examples/C/src/modal_models/FurutaPendulum/build_run_plot.sh @@ -20,11 +20,11 @@ fi # Build the generated code. cd ${LF_SOURCE_GEN_DIRECTORY} -cmake -DLF_REACTION_GRAPH_BREADTH=3 -DLF_THREADED=1 -DNUMBER_OF_WORKERS=0 -DSCHEDULER=NP -DMODAL_REACTORS=TRUE . -cmake --build . +cmake -Bbuild +make -C build # Move the executable to the bin directory. -mv $1 ${LF_BIN_DIRECTORY} +mv build/$1 ${LF_BIN_DIRECTORY} # Move back to source directory to run program cd ${LF_SOURCE_DIRECTORY} diff --git a/examples/C/src/modal_models/FurutaPendulum/furuta.cmake b/examples/C/src/modal_models/FurutaPendulum/furuta.cmake new file mode 100644 index 00000000..430831ec --- /dev/null +++ b/examples/C/src/modal_models/FurutaPendulum/furuta.cmake @@ -0,0 +1 @@ +target_link_libraries(${LF_MAIN_TARGET} PRIVATE m) \ No newline at end of file