Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@15938 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
- Loading branch information
1 parent
1c5314a
commit 63220cf
Showing
13 changed files
with
472 additions
and
472 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,47 @@ | ||
# Jens Frenkel, Jens.Frenkel@tu-dresden.de, 2010-03-30 | ||
# CMakefile for compilation of OMC | ||
|
||
# CMAKE | ||
CMAKE_MINIMUM_REQUIRED(VERSION 2.6) | ||
# PROJECT | ||
PROJECT(OpenModelicaCompiler) | ||
|
||
# Defines for Visual Studio | ||
if(MSVC) | ||
add_definitions(-D_CRT_SECURE_NO_WARNINGS -DNOMINMAX -D_COMPLEX_DEFINED) | ||
endif(MSVC) | ||
|
||
# Global Variables | ||
SET(OMCTRUNCHOME ${CMAKE_CURRENT_SOURCE_DIR}) | ||
SET(CODEGENDIR ${CMAKE_CURRENT_BINARY_DIR}/codegen) | ||
SET(OPENMODELICAHOME $ENV{OPENMODELICAHOME}) | ||
SET(OMC_DEBUG ${OPENMODELICAHOME}/bin/omc.exe) | ||
|
||
# Tests | ||
OPTION(RUN_TESTS "Run Tests" OFF) | ||
IF(RUN_TESTS) | ||
enable_testing() | ||
ADD_SUBDIRECTORY(testsuite) | ||
ENDIF(RUN_TESTS) | ||
|
||
# Subdirectorys | ||
#ADD_SUBDIRECTORY(modelica_parser) | ||
#ADD_SUBDIRECTORY(flat_modelica_parser) | ||
#ADD_SUBDIRECTORY(Compiler) | ||
#ADD_SUBDIRECTORY(doc) | ||
#ADD_SUBDIRECTORY(Examples) | ||
ADD_SUBDIRECTORY(SimulationRuntime) | ||
#ADD_SUBDIRECTORY(3rdParty/FMIL/ThirdParty/Expat/expat-2.0.1) | ||
|
||
IF(RUN_TESTS) | ||
# ------------------------------------------------------------- | ||
# Models | ||
# ------------------------------------------------------------- | ||
# add here your models to compile (add filename without ".mo") | ||
# Example: | ||
# BUILDMODEL(model dir Flags CSRC) | ||
#BUILDMODEL(BouncingBall ${CMAKE_CURRENT_SOURCE_DIR}/testsuite/mosfiles-dassl +d=bltdump "") | ||
#BUILDMODELFMU(Test ${CMAKE_CURRENT_SOURCE_DIR}/build/bin/Test/FMU +d=bltdump "") | ||
#BUILDMODELMOS(PolyEvaluate2 PolynomialEvaluatorB.mos ${CMAKE_CURRENT_SOURCE_DIR}/testsuite/simulation/modelica/arrays +simCodeTarget=C "") | ||
#BUILDMODELFMUMOS(WheelLoader D:/Temp/Modell/Radlader-CNH/WheelLoader.mos +d=bltdump "") | ||
# Jens Frenkel, Jens.Frenkel@tu-dresden.de, 2010-03-30 | ||
# CMakefile for compilation of OMC | ||
|
||
# CMAKE | ||
CMAKE_MINIMUM_REQUIRED(VERSION 2.6) | ||
# PROJECT | ||
PROJECT(OpenModelicaCompiler) | ||
|
||
# Defines for Visual Studio | ||
if(MSVC) | ||
add_definitions(-D_CRT_SECURE_NO_WARNINGS -DNOMINMAX -D_COMPLEX_DEFINED) | ||
endif(MSVC) | ||
|
||
# Global Variables | ||
SET(OMCTRUNCHOME ${CMAKE_CURRENT_SOURCE_DIR}) | ||
SET(CODEGENDIR ${CMAKE_CURRENT_BINARY_DIR}/codegen) | ||
SET(OPENMODELICAHOME $ENV{OPENMODELICAHOME}) | ||
SET(OMC_DEBUG ${OPENMODELICAHOME}/bin/omc.exe) | ||
|
||
# Tests | ||
OPTION(RUN_TESTS "Run Tests" OFF) | ||
IF(RUN_TESTS) | ||
enable_testing() | ||
ADD_SUBDIRECTORY(testsuite) | ||
ENDIF(RUN_TESTS) | ||
|
||
# Subdirectorys | ||
#ADD_SUBDIRECTORY(modelica_parser) | ||
#ADD_SUBDIRECTORY(flat_modelica_parser) | ||
#ADD_SUBDIRECTORY(Compiler) | ||
#ADD_SUBDIRECTORY(doc) | ||
#ADD_SUBDIRECTORY(Examples) | ||
ADD_SUBDIRECTORY(SimulationRuntime) | ||
#ADD_SUBDIRECTORY(3rdParty/FMIL/ThirdParty/Expat/expat-2.0.1) | ||
|
||
IF(RUN_TESTS) | ||
# ------------------------------------------------------------- | ||
# Models | ||
# ------------------------------------------------------------- | ||
# add here your models to compile (add filename without ".mo") | ||
# Example: | ||
# BUILDMODEL(model dir Flags CSRC) | ||
#BUILDMODEL(BouncingBall ${CMAKE_CURRENT_SOURCE_DIR}/testsuite/mosfiles-dassl +d=bltdump "") | ||
#BUILDMODELFMU(Test ${CMAKE_CURRENT_SOURCE_DIR}/build/bin/Test/FMU +d=bltdump "") | ||
#BUILDMODELMOS(PolyEvaluate2 PolynomialEvaluatorB.mos ${CMAKE_CURRENT_SOURCE_DIR}/testsuite/simulation/modelica/arrays +simCodeTarget=C "") | ||
#BUILDMODELFMUMOS(WheelLoader D:/Temp/Modell/Radlader-CNH/WheelLoader.mos +d=bltdump "") | ||
ENDIF(RUN_TESTS) |
Empty file.
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
|
||
# get all files in directory dir | ||
FILE(GLOB ALL_MO *.mo) | ||
FILE(GLOB ALL_MOS *.mos) | ||
FILE(GLOB ALL_ONB *.onb) | ||
FILE(GLOB ALL_C *.c) | ||
FILE(GLOB ALL_H *.h) | ||
|
||
SET(DOCS ${ALL_MO} ${ALL_MOS} ${ALL_ONB} ${ALL_C} ${ALL_H}) | ||
INSTALL(FILES ${DOCS} DESTINATION testmodels) | ||
|
||
# get all files in directory dir | ||
FILE(GLOB ALL_MO *.mo) | ||
FILE(GLOB ALL_MOS *.mos) | ||
FILE(GLOB ALL_ONB *.onb) | ||
FILE(GLOB ALL_C *.c) | ||
FILE(GLOB ALL_H *.h) | ||
|
||
SET(DOCS ${ALL_MO} ${ALL_MOS} ${ALL_ONB} ${ALL_C} ${ALL_H}) | ||
INSTALL(FILES ${DOCS} DESTINATION testmodels) |
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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
A Lexer/Parser for Modelica based on ANTLR3.2 | ||
--------------------------------------------- | ||
Adrian Pop [adpo@ida.liu.se] 2010-05-04 | ||
Visual Studio: | ||
1. Open ModelicaParser.sln and build the project. | ||
2. To test the parser use -d for directories -f for files. | ||
adrpo@KAFKA ~/dev/OpenModelica/Parser | ||
$ time ./Release/ModelicaParser.exe -d ~/dev/OpenModelica/build/ModelicaLibrary/ | ||
adrpo@KAFKA ~/dev/OpenModelica/Parser | ||
$ time ./Release/ModelicaParser.exe -f FullModelica3.1.mo | ||
MinGW GCC /Linux GCC | ||
$ make clean all test | ||
In the future antlr files will be moved to OMDev. | ||
Cheers, | ||
A Lexer/Parser for Modelica based on ANTLR3.2 | ||
--------------------------------------------- | ||
Adrian Pop [adpo@ida.liu.se] 2010-05-04 | ||
|
||
Visual Studio: | ||
1. Open ModelicaParser.sln and build the project. | ||
2. To test the parser use -d for directories -f for files. | ||
adrpo@KAFKA ~/dev/OpenModelica/Parser | ||
$ time ./Release/ModelicaParser.exe -d ~/dev/OpenModelica/build/ModelicaLibrary/ | ||
adrpo@KAFKA ~/dev/OpenModelica/Parser | ||
$ time ./Release/ModelicaParser.exe -f FullModelica3.1.mo | ||
|
||
MinGW GCC /Linux GCC | ||
$ make clean all test | ||
|
||
In the future antlr files will be moved to OMDev. | ||
|
||
|
||
Cheers, | ||
Adrian Pop/ |
Oops, something went wrong.