@@ -11,7 +11,7 @@ endif()
1111# versions management
1212set (XMLVERSION 3.1)
1313
14- set (VERSION 3.2.1 )
14+ set (VERSION 3.2.2 )
1515macro (get_major_minor_patch version )
1616 string ( REGEX REPLACE "([0-9]*)\\ .([0-9]*)\\ .([0-9]*)" "\\ 1" VERSION_MAJOR ${version} )
1717 string ( REGEX REPLACE "([0-9]*)\\ .([0-9]*)\\ .([0-9]*)" "\\ 2" VERSION_MINOR ${version} )
@@ -32,7 +32,7 @@ option ( GENTOOLS "Generates tools" on )
3232option ( GENSTATIC "Generates the static library" on )
3333
3434if (GENTOOLS)
35- message (STATUS "Generate tools (force required static library generation)" )
35+ message (STATUS "Generate tools (forces static library generation)" )
3636 set (GENSTATIC on )
3737endif ()
3838
@@ -103,10 +103,11 @@ foreach(folder ${SRCFOLDERS})
103103endforeach ()
104104
105105set (SRC ${SRC} "${SRCDIR} /interface/libmusicxml.cpp" "${SRCDIR} /interface/musicxml2guido.cpp" )
106- set (HEADERS $HEADERS "${SRCDIR} /interface/libmusicxml.h" "${SRCDIR} /interface/musicxml2guido .h" )
106+ set (HEADERS "${SRCDIR} /interface/libmusicxml.h" "${SRCDIR} /interface/exports .h" )
107107set (SRCFOLDERS ${SRCFOLDERS} interface )
108+
108109file (GLOB CORESRC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${SRC} )
109- file (GLOB COREH RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${HEADERS} "${SRCDIR} /elements/*H " "${SRCDIR} /visitors/*H " "${SRCDIR} /files/*H " "${SRCDIR} /parser/reader.h" "${SRCDIR} /lib/*H " "${SRCDIR} /guido/*H " )
110+ file (GLOB COREH RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${HEADERS} "${SRCDIR} /elements/*.h " "${SRCDIR} /visitors/*.h " "${SRCDIR} /files/*.h " "${SRCDIR} /parser/reader.h" "${SRCDIR} /lib/*.h " "${SRCDIR} /guido/*.h " )
110111
111112foreach (folder ${SRCFOLDERS} )
112113 set (INCL ${INCL} "${SRCDIR} /${folder} " ) # add include folders
@@ -146,7 +147,7 @@ if (NOT IOS)
146147 ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${LIBDIR}
147148 LIBRARY_OUTPUT_DIRECTORY ${LIBDIR}
148149 LIBRARY_OUTPUT_DIRECTORY_RELEASE ${LIBDIR}
149- PUBLIC_HEADER "${COREH } "
150+ PUBLIC_HEADER "${HEADERS } "
150151 DEFINE_SYMBOL LIBMUSICXML_EXPORTS
151152 XCODE_ATTRIBUTE_ENABLE_BITCODE "NO"
152153)
@@ -165,7 +166,7 @@ elseif(IOS)
165166 LIBRARY_OUTPUT_DIRECTORY ${LIBDIR}
166167 LIBRARY_OUTPUT_DIRECTORY_RELEASE ${LIBDIR}
167168 XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET ${IOS_DEPLOYMENT_TARGET}
168- PUBLIC_HEADER "${COREH } "
169+ PUBLIC_HEADER "${HEADERS } "
169170 MACOSX_FRAMEWORK_IDENTIFIER "com.grame.libmusicxml"
170171 MACOSX_FRAMEWORK_SHORT_VERSION_STRING ${STRVERS}
171172 MACOSX_FRAMEWORK_BUNDLE_VERSION ${VERSION}
@@ -188,7 +189,7 @@ set_target_properties (${staticlib} PROPERTIES
188189 ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${LIBDIR}
189190 LIBRARY_OUTPUT_DIRECTORY ${LIBDIR}
190191 LIBRARY_OUTPUT_DIRECTORY_RELEASE ${LIBDIR}
191- PUBLIC_HEADER "${COREH } "
192+ PUBLIC_HEADER "${HEADERS } "
192193 DEFINE_SYMBOL LIBMUSICXML_EXPORTS
193194 XCODE_ATTRIBUTE_ENABLE_BITCODE "NO"
194195 OUTPUT_NAME musicxml2
0 commit comments