Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added CMakefiles for Idas an Cvode to cpp runtime
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@10614 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
- Loading branch information
Showing
11 changed files
with
146 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,3 @@ target_link_libraries( Simulation ${Boost_LIBRARIES}) | |
|
||
install (TARGETS Simulation DESTINATION bin) | ||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
SimulationRuntime/cpp/Source/Solver/CVode/Implementation/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
cmake_minimum_required (VERSION 2.6) | ||
|
||
project(CVode) | ||
include_directories(${SUNDIALS_INCLUDE_DIR}/Cvodes ${SUNDIALS_INCLUDE_DIR}/nvector ${SUNDIALS_INCLUDE_DIR}/sundials ${SUNDIALS_INCLUDE_DIR}) | ||
|
||
# add the solver default implementation library | ||
add_library(CVode SHARED CVode.cpp CVodeSettings.cpp ) | ||
target_link_libraries (CVode Solver ${Boost_LIBRARIES} ${SUNDIALS_LIBS}) | ||
#target_link_libraries( Euler ${Boost_serialization_LIBRARY}) | ||
|
||
|
||
|
||
|
||
|
||
|
||
install (TARGETS CVode DESTINATION bin) | ||
#install (FILES "../Interfaces/EulerSettings.xml" | ||
# DESTINATION bin/config) | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
SimulationRuntime/cpp/Source/Solver/Idas/Implementation/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
cmake_minimum_required (VERSION 2.6) | ||
|
||
project(Idas) | ||
include_directories(${SUNDIALS_INCLUDE_DIR}/Idas ${SUNDIALS_INCLUDE_DIR}/nvector ${SUNDIALS_INCLUDE_DIR}/sundials ${SUNDIALS_INCLUDE_DIR}) | ||
# add the solver default implementation library | ||
add_library(Idas SHARED Idas.cpp IdasSettings.cpp ) | ||
target_link_libraries (Idas Solver ${Boost_LIBRARIES} ${SUNDIALS_LIBS} ) | ||
|
||
install (TARGETS Idas DESTINATION bin) | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters