1 # Copyright (C) 2012 Modelon AB
3 # This program is free software: you can redistribute it and/or modify
4 # it under the terms of the BSD style license.
6 # # This program is distributed in the hope that it will be useful,
7 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 # FMILIB_License.txt file for more details.
11 # You should have received a copy of the FMILIB_License.txt file
12 # along with this program. If not, contact Modelon AB <http://www.modelon.com>.
15 set(FMICAPIDIR ${FMILIBRARYHOME}/src/CAPI)
17 # set(DOXYFILE_EXTRA_SOURCES "${DOXYFILE_EXTRA_SOURCES} \"${FMICAPIDIR}/include\"")
21 include_directories("${FMICAPIDIR}/include" "${FMICAPIDIR}/src")
22 set(FMICAPI_LIBRARIES fmicapi)
25 src/FMI1/fmi1_capi_cs.c
26 src/FMI1/fmi1_capi_me.c
28 src/FMI2/fmi2_capi_cs.c
29 src/FMI2/fmi2_capi_me.c
33 include/FMI1/fmi1_capi.h
34 src/FMI1/fmi1_capi_impl.h
35 include/FMI2/fmi2_capi.h
36 src/FMI2/fmi2_capi_impl.h
39 include_directories(${FMILIB_FMI_STANDARD_HEADERS})
41 PREFIXLIST(FMICAPISOURCE ${FMICAPIDIR}/)
42 PREFIXLIST(FMICAPIHEADERS ${FMICAPIDIR}/)
44 add_library(fmicapi ${FMILIBKIND} ${FMICAPISOURCE} ${FMICAPIHEADERS})
46 target_link_libraries(fmicapi ${JMUTIL_LIBRARIES})
48 # install(DIRECTORY ${FMIXMLDIR}/include DESTINATION .)
49 # install(DIRECTORY ${FMICAPIDIR}/include DESTINATION .)
50 #install(DIRECTORY ${JMRUNTIMEHOME}/FMI/ZIP/include DESTINATION include)