Browse Source

🐛 Fixed missing files when packaging with ninja on windows

Signed-off-by: Edgar <Edgar@AnotherFoxGuy.com>
pull/326/head
Edgar 12 months ago
committed by Be
parent
commit
641b293dde
  1. 2
      CMakeLists.txt
  2. 2
      help/CMakeLists.txt
  3. 2
      images/CMakeLists.txt
  4. 2
      locale/CMakeLists.txt
  5. 2
      modules/CMakeLists.txt
  6. 2
      nyquist/CMakeLists.txt
  7. 2
      plug-ins/CMakeLists.txt
  8. 11
      src/CMakeLists.txt

2
CMakeLists.txt

@ -205,7 +205,7 @@ message( STATUS " Compiler Standard Required: ${CMAKE_CXX_STANDARD_REQUIRED}" )
message( STATUS " Compiler Extensions: ${CMAKE_CXX_EXTENSIONS}" )
message( STATUS )
if( CMAKE_GENERATOR MATCHES "Visual Studio" )
if( MSVC )
message( STATUS " MSVC Version: ${MSVC_VERSION}" )
message( STATUS " MSVC Toolset: ${MSVC_TOOLSET_VERSION}" )
message( STATUS )

2
help/CMakeLists.txt

@ -49,7 +49,7 @@ if( ${_OPT}package_manual )
endif()
if( NOT CMAKE_SYSTEM_NAME MATCHES "Darwin" )
if( NOT "${CMAKE_GENERATOR}" MATCHES "Visual Studio*")
if( NOT WIN32)
install( DIRECTORY "${dst}" OPTIONAL
DESTINATION "${_DATADIR}/audacity/help" )
install( FILES "${_SRCDIR}/audacity.1"

2
images/CMakeLists.txt

@ -16,7 +16,7 @@ list( APPEND PIXMAPS
)
if( NOT CMAKE_SYSTEM_NAME MATCHES "Darwin" )
if( NOT "${CMAKE_GENERATOR}" MATCHES "Visual Studio*")
if( NOT WIN32)
install( FILES "${_SRCDIR}/audacity.svg"
DESTINATION "${_DATADIR}/icons/hicolor/scalable/apps" )
install( DIRECTORY "${_SRCDIR}/icons/"

2
locale/CMakeLists.txt

@ -80,7 +80,7 @@ endforeach()
add_custom_target( "${TARGET}" ALL DEPENDS ${OUTPUTS} SOURCES "${SOURCES}" )
if( NOT CMAKE_SYSTEM_NAME MATCHES "Darwin" )
if( NOT "${CMAKE_GENERATOR}" MATCHES "Visual Studio*")
if( NOT WIN32)
install( DIRECTORY ${locale}/
TYPE LOCALE )
endif()

2
modules/CMakeLists.txt

@ -17,7 +17,7 @@ foreach( MODULE ${MODULES} )
endforeach()
if( NOT CMAKE_SYSTEM_NAME MATCHES "Darwin" )
if( NOT "${CMAKE_GENERATOR}" MATCHES "Visual Studio*")
if( NOT WIN32)
install( DIRECTORY "${_DEST}/modules"
DESTINATION "${_PKGLIB}" )
endif()

2
nyquist/CMakeLists.txt

@ -83,7 +83,7 @@ endforeach()
add_custom_target( ${TARGET} ALL DEPENDS ${OUTPUTS} SOURCES ${SOURCES} )
if( NOT CMAKE_SYSTEM_NAME MATCHES "Darwin" )
if( NOT "${CMAKE_GENERATOR}" MATCHES "Visual Studio*")
if( NOT WIN32)
install( DIRECTORY "${_DEST}/${TARGET}"
DESTINATION "${_PKGDATA}" )
endif()

2
plug-ins/CMakeLists.txt

@ -59,7 +59,7 @@ endforeach()
add_custom_target( ${TARGET} ALL DEPENDS ${OUTPUTS} SOURCES ${SOURCES} )
if( NOT CMAKE_SYSTEM_NAME MATCHES "Darwin" )
if( NOT "${CMAKE_GENERATOR}" MATCHES "Visual Studio*")
if( NOT WIN32)
install( DIRECTORY "${_DEST}/${TARGET}"
DESTINATION "${_PKGDATA}" )
endif()

11
src/CMakeLists.txt

@ -1362,13 +1362,16 @@ if( "${CMAKE_GENERATOR}" MATCHES "Xcode|Visual Studio*" )
PATTERN "*.ilk" EXCLUDE
)
else()
if( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
if( APPLE )
install( TARGETS ${TARGET}
DESTINATION "."
RESOURCE DESTINATION "${_APPDIR}/Resources" )
elseif( CMAKE_SYSTEM_NAME MATCHES "Windows" )
install( TARGETS ${TARGET}
DESTINATION "." )
elseif( WIN32 )
install( DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/"
DESTINATION "."
USE_SOURCE_PERMISSIONS
PATTERN "*.pdb" EXCLUDE
PATTERN "*.ilk" EXCLUDE )
else()
install( TARGETS ${TARGET} RUNTIME )
install( DIRECTORY "${_DEST}/${_LIBDIR}/"

Loading…
Cancel
Save