Skip to content

Commit

Permalink
modified cpp runtime CMake file for system initialization
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11177 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
niklwors committed Feb 23, 2012
1 parent 715ea48 commit 6ca9d13
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
25 changes: 15 additions & 10 deletions SimulationRuntime/cpp/Source/CMakeLists.txt
Expand Up @@ -18,27 +18,30 @@ SET(SUNDIALS_LIBRARY_RELEASE_HOME $ENV{OMDEV}/lib/3rdParty/Sundials/lib/release
elseif(MINGW)
SET(SUNDIALS_LIBRARY_RELEASE_HOME $ENV{OMDEV}/lib/3rdParty/Sundials/lib/release/mingw)
endif()

ENDIF( WIN32 )



message(STATUS ${CVODES_LIB})

SET(Boost_USE_STATIC_LIBS OFF)
SET(Boost_USE_MULTITHREADED ON)
SET(Boost_USE_STATIC_RUNTIME OFF)
SET(MODELICA_MODEL "ModelicaSystem")
SET(USE_MICO OFF)
SET(REDUCE_DAE OFF)
SET(USE_SUNDIALS ON)
SET(INSTALL_OMDEV_LIBS ON)


# Boost
SET(Boost_USE_STATIC_LIBS OFF)
SET(Boost_USE_MULTITHREADED ON)
SET(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.45.0 COMPONENTS serialization REQUIRED )
# Lapack and Blas
find_package( BLAS )
find_package( LAPACK )

if(MSVC)
#workaround because cmake does not find the lapack libraries for Visual Studio 10
SET(LAPACK_MSVC_10 $ENV{OMDEV}/lib/3rdParty/Lapack/Lib/lapack_win32.lib )
SET(BLAS_MSVC_10 $ENV{OMDEV}/lib/3rdParty/Lapack/Lib/blas_win32.lib )
SET(LAPACK_LIBRARIES ${LAPACK_MSVC_10} ${BLAS_MSVC_10} )
endif()
message(STATUS "Lapack Libraries")
message(STATUS ${LAPACK_LIBRARIES})
# Sundials solvers
if(USE_SUNDIALS)

Expand All @@ -55,6 +58,8 @@ find_library(SUNDIALS_IDAS_LIB "sundials_idas"
PATHS ${SUNDIALS_LIBRARY_RELEASE_HOME} )

set(SUNDIALS_LIBS ${SUNDIALS_NVECSERIAL_LIB} ${SUNDIALS_CVODES_LIB} ${SUNDIALS_IDAS_LIB})

message(STATUS "Sundials Libraries:")
message(STATUS ${SUNDIALS_LIBS})
add_definitions(-DPMC_USE_SUNDIALS)
endif()
Expand Down
Expand Up @@ -15,6 +15,7 @@ install (FILES ../Interfaces/IAlgLoop.h
../Interfaces/IDataExchange.h
../Interfaces/IEvent.h
../Interfaces/ISystemProperties.h
../Interfaces/ISystemIntialization.h
DESTINATION include/omc/cpp/System/Interfaces)


Expand Down

0 comments on commit 6ca9d13

Please sign in to comment.