1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-12 17:14:00 +02:00

Fix launching the crash reporter from build dir on OSX

This commit is contained in:
Dominik Schmidt
2014-04-15 19:43:23 +02:00
parent 8ffa6634b8
commit c823ab0cdf
3 changed files with 12 additions and 1 deletions

View File

@@ -103,10 +103,16 @@ ENDIF()
# set paths
SET( THIRDPARTY_DIR ${CMAKE_SOURCE_DIR}/thirdparty )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" )
SET( CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" )
# put executables into bundle dir on on osx
IF(APPLE)
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/tomahawk.app/Contents/MacOS/" )
ELSE()
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" )
ENDIF()
# make predefined install dirs available everywhere
INCLUDE( GNUInstallDirs )

View File

@@ -3,6 +3,8 @@ setup_qt()
enable_testing()
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/tests" )
include_directories(${CMAKE_CURRENT_LIST_DIR}/../src/tomahawk ${CMAKE_CURRENT_LIST_DIR}/../src/libtomahawk)
include(tomahawk_add_test.cmake)

View File

@@ -162,6 +162,9 @@ SET_TARGET_PROPERTIES(tomahawk_bin
AUTOMOC TRUE
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_BINARY_DIR}/Info.plist"
RUNTIME_OUTPUT_NAME tomahawk
# OSX: MACOSX_BUNDLE messes with paths
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
)