source: branches/dev-5819/RuntimeLibrary/src/fmi1_cs/CMakeLists.txt @ 13800

Last change on this file since 13800 was 13800, checked in by randersson, 8 weeks ago

#5819 Merged trunk into branch

File size: 1.6 KB
Line 
1#    Copyright (C) 2014 Modelon AB
2
3#    This program is free software: you can redistribute it and/or modify
4#    it under the terms of the GNU General Public License version 3 as published
5#    by the Free Software Foundation, or optionally, under the terms of the
6#    Common Public License version 1.0 as published by IBM.
7
8#    This program is distributed in the hope that it will be useful,
9#    but WITHOUT ANY WARRANTY; without even the implied warranty of
10#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11#    GNU General Public License, or the Common Public License, for more details.
12
13#    You should have received copies of the GNU General Public License
14#    and the Common Public License along with this program.  If not,
15#    see <http://www.gnu.org/licenses/> or
16#    <http://www.ibm.com/developerworks/library/os-cpl.html/> respectively.
17
18# NOTE: CMake 2.8.6 is required since this is the version used in development.
19# The script is KNOWN NOT TO WORK WITH 2.8.3 and below (ExternalProject
20# interface changes). CMake 2.8.4 and 2.8.5 are not tested.
21cmake_minimum_required (VERSION 2.8.6 FATAL_ERROR)
22
23set(FMI_CSSources
24
25    fmiCSFunctions.h
26        fmiCSPlatformTypes.h
27    fmi1_cs.h
28   
29    fmi1_cs.c
30)
31
32#Build fmi_cs library
33add_library(fmi1_cs STATIC ${FMI_CSSources})
34if(NOT MSVC)
35    set_target_properties(fmi1_cs PROPERTIES COMPILE_FLAGS "-Wall -g -std=c89 -pedantic -Werror -O2")
36endif()
37
38#Install the libraries
39if (NOT MSVC)
40    install(TARGETS fmi1_cs DESTINATION "${RTLIB_LIB_DIR}")
41endif()
42
43#Install header files
44install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/"
45    DESTINATION "${RTLIB_INCLUDE_DIR}"
46    FILES_MATCHING PATTERN "*.h")
Note: See TracBrowser for help on using the repository browser.