Skip to content

Commit

Permalink
[Janitor mode] Set auto-props
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@15938 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Apr 30, 2013
1 parent 1c5314a commit 63220cf
Show file tree
Hide file tree
Showing 13 changed files with 472 additions and 472 deletions.
92 changes: 46 additions & 46 deletions CMakeLists.txt
@@ -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 modified Compiler/scripts/replace-startValue.sh 100644 → 100755
Empty file.
20 changes: 10 additions & 10 deletions Examples/CMakeLists.txt
@@ -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)
38 changes: 19 additions & 19 deletions Parser/README.txt
@@ -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/

0 comments on commit 63220cf

Please sign in to comment.