OpenModelica / OMSimulator

The OpenModelica FMI & SSP-based co-simulation environment.
Other
69 stars 49 forks source link

Update cmake configuration #1247

Closed lochel closed 11 months ago

lochel commented 11 months ago

This makes it easier to include OMSimulator into other project.

Note: OpenModelica will need to define OPENMODELICA_SUPERPROJECT.

mahge commented 11 months ago

I think jenkins uses the Makefile in the testsuite directory to build the dependencies for the test suite. So it should work fine. However, we should be probably enable the testsuite on the CMake configure command in the Jenkinsfile anyway so building the dependencies with CMake is checked as well.

https://github.com/OpenModelica/OMSimulator/blob/793f840061b8aa00e7050d25ca23afe014da9bda/Jenkinsfile#L450

https://github.com/OpenModelica/OMSimulator/blob/793f840061b8aa00e7050d25ca23afe014da9bda/Jenkinsfile#L699

https://github.com/OpenModelica/OMSimulator/blob/793f840061b8aa00e7050d25ca23afe014da9bda/Jenkinsfile#L711


We should also add the pip option wherever it is needed.