Skip to content

Commit

Permalink
fix public headers
Browse files Browse the repository at this point in the history
  • Loading branch information
dfober committed Jun 20, 2022
1 parent e44e9b0 commit d953bc6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions build/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ option ( GENTOOLS "Generates tools" on )
option ( GENSTATIC "Generates the static library" on )

if (GENTOOLS)
message (STATUS "Generate tools (force required static library generation)")
message (STATUS "Generate tools (forces static library generation)")
set (GENSTATIC on)
endif()

Expand Down Expand Up @@ -103,10 +103,11 @@ foreach(folder ${SRCFOLDERS})
endforeach()

set(SRC ${SRC} "${SRCDIR}/interface/libmusicxml.cpp" "${SRCDIR}/interface/musicxml2guido.cpp")
set(HEADERS $HEADERS "${SRCDIR}/interface/libmusicxml.h" "${SRCDIR}/interface/musicxml2guido.h")
set(HEADERS "${SRCDIR}/interface/libmusicxml.h" "${SRCDIR}/interface/exports.h")
set (SRCFOLDERS ${SRCFOLDERS} interface)

file (GLOB CORESRC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${SRC})
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")
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")

foreach(folder ${SRCFOLDERS})
set(INCL ${INCL} "${SRCDIR}/${folder}") # add include folders
Expand Down Expand Up @@ -146,7 +147,7 @@ if (NOT IOS)
ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${LIBDIR}
LIBRARY_OUTPUT_DIRECTORY ${LIBDIR}
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${LIBDIR}
PUBLIC_HEADER "${COREH}"
PUBLIC_HEADER "${HEADERS}"
DEFINE_SYMBOL LIBMUSICXML_EXPORTS
XCODE_ATTRIBUTE_ENABLE_BITCODE "NO"
)
Expand All @@ -165,7 +166,7 @@ elseif(IOS)
LIBRARY_OUTPUT_DIRECTORY ${LIBDIR}
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${LIBDIR}
XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET ${IOS_DEPLOYMENT_TARGET}
PUBLIC_HEADER "${COREH}"
PUBLIC_HEADER "${HEADERS}"
MACOSX_FRAMEWORK_IDENTIFIER "com.grame.libmusicxml"
MACOSX_FRAMEWORK_SHORT_VERSION_STRING ${STRVERS}
MACOSX_FRAMEWORK_BUNDLE_VERSION ${VERSION}
Expand All @@ -188,7 +189,7 @@ set_target_properties (${staticlib} PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${LIBDIR}
LIBRARY_OUTPUT_DIRECTORY ${LIBDIR}
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${LIBDIR}
PUBLIC_HEADER "${COREH}"
PUBLIC_HEADER "${HEADERS}"
DEFINE_SYMBOL LIBMUSICXML_EXPORTS
XCODE_ATTRIBUTE_ENABLE_BITCODE "NO"
OUTPUT_NAME musicxml2
Expand Down
File renamed without changes.

0 comments on commit d953bc6

Please sign in to comment.