Skip to content

Commit

Permalink
Install OMSimulatorServer.py to build/share/OMSimulator/scripts (#944)
Browse files Browse the repository at this point in the history
Co-authored-by: Lennart Ochel <lennart.ochel@ri.se>
  • Loading branch information
adeas31 and lochel committed Feb 12, 2021
1 parent 2fdc09f commit 064d498
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,5 @@ add_subdirectory(src/OMSimulator)
add_subdirectory(src/OMSimulatorLib)
add_subdirectory(src/OMSimulatorLua)
add_subdirectory(src/OMSimulatorPython)
add_subdirectory(src/OMSimulatorServer)
add_subdirectory(src/pip)
6 changes: 6 additions & 0 deletions src/OMSimulatorServer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
project(OMSimulatorServer)

# install only if build as part of the OpenModelica super project
if(DEFINED HOST_SHORT)
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/OMSimulatorServer.py" DESTINATION ${CMAKE_INSTALL_PREFIX}/share/OMSimulator/scripts)
endif()

0 comments on commit 064d498

Please sign in to comment.