-
Notifications
You must be signed in to change notification settings - Fork 296
/
CMakeLists.txt
28 lines (21 loc) · 1.3 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
cmake_minimum_required(VERSION 2.8.9)
project(${NoxName})
add_library(${NoxName} Nox.cpp NoxSettings.cpp FactoryExport.cpp NoxLapackInterface.cpp NOX_StatusTest_SgnChange.C)
if(NOT BUILD_SHARED_LIBS)
set_target_properties(${NoxName} PROPERTIES COMPILE_DEFINITIONS "RUNTIME_STATIC_LINKING;ENABLE_SUNDIALS_STATIC")
else(NOT BUILD_SHARED_LIBS)
IF(MSVC)
install(FILES $<TARGET_PDB_FILE:${NoxName}> DESTINATION ${LIBINSTALLEXT} OPTIONAL)
ENDIF(MSVC)
endif(NOT BUILD_SHARED_LIBS)
add_precompiled_header(${NoxName} runtime/include/Core/Modelica.h)
target_link_libraries(${NoxName} ${SolverName} ${ExtensionUtilitiesName} ${Boost_LIBRARIES} ${TRILINOS_LIBRARIES} ) #C:/OpenModelica/OMCompiler/SimulationRuntime/cpp/Solver/KLU/OMCppklu_static.lib
#target_link_libraries(${NoxName} ${ExtensionUtilitiesName} ${Boost_LIBRARIES} ${SUNDIALS_LIBRARIES} ${LAPACK_LIBRARIES} ${kluName})
install(TARGETS ${NoxName} DESTINATION ${LIBINSTALLEXT})
install(FILES
${CMAKE_SOURCE_DIR}/runtime/Include/Solver/Nox/Nox.h
${CMAKE_SOURCE_DIR}/runtime/Include/Solver/Nox/NoxSettings.h
${CMAKE_SOURCE_DIR}/runtime/Include/Solver/Nox/FactoryExport.h
${CMAKE_SOURCE_DIR}/runtime/Include/Solver/Nox/NoxLapackInterface.h
${CMAKE_SOURCE_DIR}/runtime/Include/Solver/Nox/NOX_StatusTest_SgnChange.H
DESTINATION include/omc/omsicpp/Solver/Nox)