1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-11 00:53:46 +02:00

More cmake updates

Added install target (this is mainly for Linux)
Added mod-nyq-bench

More to come...
This commit is contained in:
Leland Lucius
2020-02-06 01:17:20 -06:00
parent 54ba4e9b8a
commit f0e3ee2cde
9 changed files with 155 additions and 51 deletions

View File

@@ -55,13 +55,13 @@ list( APPEND SOURCES
foreach( source ${SOURCES} )
set( src "${_SRCDIR}/${source}" )
set( dst "${_EXEDIR}/${TARGET}/${source}" )
set( dst "${_DEST}/${TARGET}/${source}" )
add_custom_command(
DEPENDS
"${src}"
COMMAND
${CMAKE_COMMAND} -E make_directory "${_EXEDIR}/${TARGET}"
${CMAKE_COMMAND} -E make_directory "${_DEST}/${TARGET}"
COMMAND
${CMAKE_COMMAND} -E copy "${src}" "${dst}"
OUTPUT
@@ -73,3 +73,8 @@ endforeach()
add_custom_target( ${TARGET} ALL DEPENDS ${OUTPUTS} SOURCES ${SOURCES} )
if( NOT "${CMAKE_GENERATOR}" MATCHES "Xcode|Visual Studio*" )
install( DIRECTORY "${_DEST}/${TARGET}"
DESTINATION "${_PKGDATA}" )
endif()