mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-02-25 21:31:49 +00:00
remove redundant cmake header install directives
This commit is contained in:
parent
aa3703b2e3
commit
b3ac209d21
4 changed files with 10 additions and 81 deletions
|
@ -451,12 +451,9 @@ endif ( enable-readline )
|
||||||
# General configuration file
|
# General configuration file
|
||||||
configure_file ( ${CMAKE_SOURCE_DIR}/src/config.cmake
|
configure_file ( ${CMAKE_SOURCE_DIR}/src/config.cmake
|
||||||
${CMAKE_BINARY_DIR}/config.h )
|
${CMAKE_BINARY_DIR}/config.h )
|
||||||
configure_file ( ${CMAKE_SOURCE_DIR}/include/fluidsynth.cmake
|
|
||||||
${CMAKE_BINARY_DIR}/include/fluidsynth.h )
|
|
||||||
|
|
||||||
# Process subdirectories
|
# Process subdirectories
|
||||||
add_subdirectory ( src )
|
add_subdirectory ( src )
|
||||||
add_subdirectory ( include )
|
|
||||||
add_subdirectory ( doc )
|
add_subdirectory ( doc )
|
||||||
|
|
||||||
# pkg-config support
|
# pkg-config support
|
||||||
|
|
|
@ -1,26 +0,0 @@
|
||||||
# FluidSynth - A Software Synthesize
|
|
||||||
#
|
|
||||||
# Copyright (C) 2003-2010 Peter Hanappe and others.
|
|
||||||
#
|
|
||||||
# This library is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU Lesser General Public License
|
|
||||||
# as published by the Free Software Foundation; either version 2.1 of
|
|
||||||
# the License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This library is distributed in the hope that it will be useful, but
|
|
||||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
# Lesser General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU Lesser General Public
|
|
||||||
# License along with this library; if not, write to the Free
|
|
||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
|
||||||
# 02111-1307, USA
|
|
||||||
|
|
||||||
# CMake based build system. Pedro Lopez-Cabanillas <plcl@users.sf.net>
|
|
||||||
|
|
||||||
add_subdirectory ( fluidsynth )
|
|
||||||
|
|
||||||
IF (NOT MACOSX_FRAMEWORK )
|
|
||||||
install ( FILES fluidsynth.h DESTINATION ${INCLUDE_INSTALL_DIR} )
|
|
||||||
ENDIF (NOT MACOSX_FRAMEWORK )
|
|
|
@ -1,52 +0,0 @@
|
||||||
# FluidSynth - A Software Synthesize
|
|
||||||
#
|
|
||||||
# Copyright (C) 2003-2010 Peter Hanappe and others.
|
|
||||||
#
|
|
||||||
# This library is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU Lesser General Public License
|
|
||||||
# as published by the Free Software Foundation; either version 2.1 of
|
|
||||||
# the License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This library is distributed in the hope that it will be useful, but
|
|
||||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
# Lesser General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU Lesser General Public
|
|
||||||
# License along with this library; if not, write to the Free
|
|
||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
|
||||||
# 02111-1307, USA
|
|
||||||
|
|
||||||
# CMake based build system. Pedro Lopez-Cabanillas <plcl@users.sf.net>
|
|
||||||
|
|
||||||
configure_file ( ${CMAKE_CURRENT_SOURCE_DIR}/version.h.in
|
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/version.h )
|
|
||||||
|
|
||||||
if ( NOT MACOSX_FRAMEWORK )
|
|
||||||
set ( include_HEADERS
|
|
||||||
audio.h
|
|
||||||
event.h
|
|
||||||
gen.h
|
|
||||||
ladspa.h
|
|
||||||
log.h
|
|
||||||
midi.h
|
|
||||||
misc.h
|
|
||||||
mod.h
|
|
||||||
ramsfont.h
|
|
||||||
seq.h
|
|
||||||
seqbind.h
|
|
||||||
settings.h
|
|
||||||
sfont.h
|
|
||||||
shell.h
|
|
||||||
synth.h
|
|
||||||
types.h
|
|
||||||
voice.h
|
|
||||||
)
|
|
||||||
install (
|
|
||||||
FILES
|
|
||||||
${include_HEADERS}
|
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/version.h
|
|
||||||
DESTINATION
|
|
||||||
${INCLUDE_INSTALL_DIR}/fluidsynth
|
|
||||||
)
|
|
||||||
endif ( NOT MACOSX_FRAMEWORK )
|
|
|
@ -204,6 +204,11 @@ set ( public_main_HEADER
|
||||||
${CMAKE_BINARY_DIR}/include/fluidsynth.h
|
${CMAKE_BINARY_DIR}/include/fluidsynth.h
|
||||||
)
|
)
|
||||||
|
|
||||||
|
configure_file ( ${CMAKE_SOURCE_DIR}/include/version.h.in
|
||||||
|
${CMAKE_BINARY_DIR}/include/version.h )
|
||||||
|
configure_file ( ${CMAKE_SOURCE_DIR}/include/fluidsynth.cmake
|
||||||
|
${public_main_HEADER} )
|
||||||
|
|
||||||
if ( WIN32 AND NOT MINGW )
|
if ( WIN32 AND NOT MINGW )
|
||||||
include(generate_product_version)
|
include(generate_product_version)
|
||||||
generate_product_version(
|
generate_product_version(
|
||||||
|
@ -280,6 +285,7 @@ if ( MACOSX_FRAMEWORK )
|
||||||
elseif ( OS2 )
|
elseif ( OS2 )
|
||||||
set_target_properties ( libfluidsynth
|
set_target_properties ( libfluidsynth
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
|
PUBLIC_HEADER "${public_HEADERS}"
|
||||||
OUTPUT_NAME "fluidsynth"
|
OUTPUT_NAME "fluidsynth"
|
||||||
VERSION ${LIB_VERSION_INFO}
|
VERSION ${LIB_VERSION_INFO}
|
||||||
SOVERSION ${LIB_VERSION_CURRENT}
|
SOVERSION ${LIB_VERSION_CURRENT}
|
||||||
|
@ -287,6 +293,7 @@ elseif ( OS2 )
|
||||||
elseif ( WIN32 )
|
elseif ( WIN32 )
|
||||||
set_target_properties ( libfluidsynth
|
set_target_properties ( libfluidsynth
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
|
PUBLIC_HEADER "${public_HEADERS}"
|
||||||
ARCHIVE_OUTPUT_NAME "fluidsynth"
|
ARCHIVE_OUTPUT_NAME "fluidsynth"
|
||||||
PREFIX "lib"
|
PREFIX "lib"
|
||||||
OUTPUT_NAME "fluidsynth-${LIB_VERSION_CURRENT}"
|
OUTPUT_NAME "fluidsynth-${LIB_VERSION_CURRENT}"
|
||||||
|
@ -296,6 +303,7 @@ elseif ( WIN32 )
|
||||||
else ( MACOSX_FRAMEWORK )
|
else ( MACOSX_FRAMEWORK )
|
||||||
set_target_properties ( libfluidsynth
|
set_target_properties ( libfluidsynth
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
|
PUBLIC_HEADER "${public_HEADERS}"
|
||||||
PREFIX "lib"
|
PREFIX "lib"
|
||||||
OUTPUT_NAME "fluidsynth"
|
OUTPUT_NAME "fluidsynth"
|
||||||
VERSION ${LIB_VERSION_INFO}
|
VERSION ${LIB_VERSION_INFO}
|
||||||
|
@ -355,6 +363,8 @@ else ( MACOSX_FRAMEWORK )
|
||||||
RUNTIME DESTINATION ${BIN_INSTALL_DIR}
|
RUNTIME DESTINATION ${BIN_INSTALL_DIR}
|
||||||
LIBRARY DESTINATION ${LIB_INSTALL_DIR}
|
LIBRARY DESTINATION ${LIB_INSTALL_DIR}
|
||||||
ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
|
ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
|
||||||
|
PUBLIC_HEADER DESTINATION ${INCLUDE_INSTALL_DIR}/fluidsynth
|
||||||
)
|
)
|
||||||
|
install ( FILES fluidsynth.h DESTINATION ${INCLUDE_INSTALL_DIR} )
|
||||||
endif ( MACOSX_FRAMEWORK )
|
endif ( MACOSX_FRAMEWORK )
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue