1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-12 07:35:51 +01:00

Add cmake_build.txt and fix a small CMake issue

The cmake_build.txt is for Mac only right now, so we'll probably
want to try and figure out how to make it generic enough for all
platforms.
This commit is contained in:
Leland Lucius
2020-03-07 18:16:27 -06:00
parent 9056eed946
commit abec10d88b
3 changed files with 146 additions and 3 deletions

View File

@@ -347,14 +347,15 @@ find_package( OpenGL QUIET )
# .../bin/Debug//
# or:
# .../bin//Debug
set( _DEST "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/${CMAKE_BUILD_TYPE}" )
set( _DESTDIR "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/${CMAKE_BUILD_TYPE}" )
set( _DEST "${_DESTDIR}" )
set( _EXEDIR "${_DEST}" )
string( REGEX REPLACE "/+$" "" _EXEDIR "${_EXEDIR}" )
# Adjust them for the Mac
if( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
set( _DEST "${_DEST}/Audacity.app/Contents" )
set( _EXEDIR "${_DEST}/Macos" )
set( _EXEDIR "${_DEST}/MacOS" )
endif()
set( _PREFIX "${CMAKE_INSTALL_PREFIX}" )