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(JMUTILDIR ${FMILIBRARYHOME}/src/Util/)
16 set(JMUTIL_LIBRARIES jmutils)
17 include_directories ("${JMUTILDIR}/include" "${FMILIB_FMI_STANDARD_HEADERS}")
18 set(DOXYFILE_EXTRA_SOURCES "${DOXYFILE_EXTRA_SOURCES} \"${JMUTILDIR}/include\"")
22 JM/jm_templates_inst.c
35 JM/jm_vector_template.h
51 FMI2/fmi2_xml_callbacks.h
54 PREFIXLIST(JMUTILSOURCE ${JMUTILDIR}/src/)
55 PREFIXLIST(JMUTILHEADERS ${JMUTILDIR}/include/)
57 add_library(jmutils ${FMILIBKIND} ${JMUTILSOURCE} ${JMUTILHEADERS})
63 target_link_libraries(jmutils c99snprintf)
66 target_compile_definitions(jmutils PRIVATE -D_GNU_SOURCE)
67 target_link_libraries(jmutils dl)
70 target_link_libraries(jmutils Shlwapi)