Changeset 27124b2 in OpenModelica


Ignore:
Timestamp:
2020-10-21T14:04:15+02:00 (3 years ago)
Author:
Mahder Gebremedhin <mahder.gebremedhin@…>
Children:
6f81d96
Parents:
e9ec81a
git-author:
Mahder Gebremedhin <mahder.gebremedhin@…> (07/12/20 20:34:30)
git-committer:
Mahder Gebremedhin <mahder.gebremedhin@…> (10/21/20 14:04:15)
Message:

[CMake] Add runtime/omcgraphstream.

  • Add compilation for libomcgraphstream. Links to 3rdParty/graphstream libnetstream.a
Location:
OMCompiler/Compiler/runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OMCompiler/Compiler/runtime/CMakeLists.txt

    rc251417 r27124b2  
    5656target_include_directories(omcbackendruntime PRIVATE ${OMCompiler_SOURCE_DIR}/Compiler) #for OpenModelicaBootstrappingHeader.h :/
    5757
     58
     59
     60
     61
     62
     63
     64
     65set(OMC_GRAPH_STREAM_SOURCES GraphStreamExt_omc.cpp)
     66add_library(omcgraphstream STATIC ${OMC_GRAPH_STREAM_SOURCES})
     67add_library(omc::compiler::graphstream ALIAS omcgraphstream)
     68# target_compile_features(omcbackendruntime PRIVATE cxx_std_11)
     69
     70target_link_libraries(omcgraphstream PUBLIC OpenModelicaRuntimeC)
     71target_link_libraries(omcgraphstream PUBLIC omc::3rd::netstream)
     72# target_link_libraries(omcbackendruntime PUBLIC omc::3rd::fmilib::shared) # We use the minizip lib from 3rdParty/FMIL
     73# target_link_libraries(omcbackendruntime PUBLIC omc::3rd::gc)
     74
     75
     76# target_include_directories(omcbackendruntime PRIVATE ${SimulationRuntimeC_SOURCE_DIR}) #for openmodelica.h :/
     77# target_include_directories(omcbackendruntime PRIVATE ${OMCompiler_SOURCE_DIR}) #for revision.h
     78target_include_directories(omcgraphstream PRIVATE ${OMCompiler_SOURCE_DIR}/Compiler) #for OpenModelicaBootstrappingHeader.h :/
  • OMCompiler/Compiler/runtime/GraphStreamExt_omc.cpp

    r818a8f24 r27124b2  
    3737
    3838extern "C" {
    39 #include "meta_modelica.h"
     39#include "meta/meta_modelica.h"
    4040#define ADD_METARECORD_DEFINITIONS static
    4141#include "OpenModelicaBootstrappingHeader.h"
Note: See TracChangeset for help on using the changeset viewer.