Skip to content

Commit

Permalink
FMU: produce FMU library files without lib prefix.
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Rule (VM/EMT3) <[email protected]>
  • Loading branch information
timrulebosch committed Dec 18, 2024
1 parent 5b1dc66 commit 6f916e4
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 4 deletions.
8 changes: 8 additions & 0 deletions dse/examples/fmu/counter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ target_link_libraries(fmu2${MODULE_LC}
$<$<BOOL:${WIN32}>:dl>
m
)
set_target_properties(fmu2${MODULE_LC}
PROPERTIES
PREFIX ""
)
install(
TARGETS
fmu2${MODULE_LC}
Expand Down Expand Up @@ -131,6 +135,10 @@ target_link_libraries(fmu3${MODULE_LC}
$<$<BOOL:${WIN32}>:dl>
m
)
set_target_properties(fmu3${MODULE_LC}
PROPERTIES
PREFIX ""
)
install(
TARGETS
fmu3${MODULE_LC}
Expand Down
8 changes: 8 additions & 0 deletions dse/examples/fmu/linear/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ target_link_libraries(fmu2${MODULE_LC}
$<$<BOOL:${WIN32}>:dl>
m
)
set_target_properties(fmu2${MODULE_LC}
PROPERTIES
PREFIX ""
)
install(
TARGETS
fmu2${MODULE_LC}
Expand Down Expand Up @@ -131,6 +135,10 @@ target_link_libraries(fmu3${MODULE_LC}
$<$<BOOL:${WIN32}>:dl>
m
)
set_target_properties(fmu3${MODULE_LC}
PROPERTIES
PREFIX ""
)
install(
TARGETS
fmu3${MODULE_LC}
Expand Down
4 changes: 4 additions & 0 deletions dse/fmu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ target_link_libraries(fmi2fmu
$<$<BOOL:${WIN32}>:dl>
m
)
set_target_properties(fmi2fmu
PROPERTIES
PREFIX ""
)
install(
TARGETS
fmi2fmu
Expand Down
4 changes: 2 additions & 2 deletions tests/testscript/e2e/example_fmu_counter.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
env NAME=counter
env IMPORTER=dse/build/_out/importer/fmuImporter
env FMU_DIR=dse/build/_out/examples/fmu/counter/fmi2
env FMU_SO=binaries/linux64/libfmu2counter.so
env FMU_SO=binaries/linux64/fmu2counter.so

# TEST: FMU 2 Counter
exec sh -e $WORK/test.sh

stdout 'Importer: Loading FMU: binaries/linux64/libfmu2counter.so'
stdout 'Importer: Loading FMU: binaries/linux64/fmu2counter.so'
stdout 'Importer: Calling fmi2DoStep\(\): model_time=0.004500, step_size=0.000500'
stdout 'Importer: \[1\] 10.000000'

Expand Down
4 changes: 2 additions & 2 deletions tests/testscript/e2e/example_fmu_linear.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
env NAME=linear
env IMPORTER=dse/build/_out/importer/fmuImporter
env FMU_DIR=dse/build/_out/examples/fmu/linear/fmi2
env FMU_SO=binaries/linux64/libfmu2linear.so
env FMU_SO=binaries/linux64/fmu2linear.so

# TEST: FMU 2 Linear
exec sh -e $WORK/test.sh

stdout 'Importer: Loading FMU: binaries/linux64/libfmu2linear.so'
stdout 'Importer: Loading FMU: binaries/linux64/fmu2linear.so'
stdout 'Importer: Calling fmi2DoStep\(\): model_time=0.004500, step_size=0.000500'
stdout 'Importer: \[4\] 0.000000'

Expand Down

0 comments on commit 6f916e4

Please sign in to comment.