Skip to content

Commit

Permalink
[cmake] Install the built libraries.
Browse files Browse the repository at this point in the history
  • Loading branch information
mahge committed Jul 21, 2021
1 parent 8cdca88 commit b6153f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions OMCompiler/SimulationRuntime/c/cmake_3.14.cmake
Expand Up @@ -29,6 +29,8 @@ endif(WIN32)

target_include_directories(OpenModelicaRuntimeC PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

install(TARGETS OpenModelicaRuntimeC)

# ######################################################################################################################
# Library: OpenModelicaFMIRuntimeC
add_library(OpenModelicaFMIRuntimeC STATIC ${OMC_SIMRT_FMI_SOURCES})
Expand All @@ -39,6 +41,7 @@ target_sources(OpenModelicaFMIRuntimeC PRIVATE ${OMC_SIMRT_FMI_SOURCES})
target_link_libraries(OpenModelicaFMIRuntimeC PUBLIC omc::3rd::fmilib::static)
target_link_libraries(OpenModelicaFMIRuntimeC PUBLIC omc::simrt::runtime)

install(TARGETS OpenModelicaFMIRuntimeC)


# Quick and INCOMPLETE generation of RuntimeSources.mo
Expand Down

0 comments on commit b6153f5

Please sign in to comment.