osx: for cmake set library output to be lib folder

On Apple only set  CMAKE_LIBRARY_OUTPUT_DIRECTORY to be “lib” folder instead of “bin” folder
Fixes osx problem when launching renderdoccmd not being able to find librenderdoc.dylib
RPATH is set to be "@executable_path/../lib" which matches where qrenderdoc.app copies the renderdoc library to

qrenderdoc: set library search folder “-L” to be CMAKE_LIBRARY_OUTPUT_DIRECTORY instead of CMAKE_RUNTIME_OUTPUT_DIRECTORY
This commit is contained in:
Jake Turner
2019-01-03 12:21:58 +00:00
committed by Baldur Karlsson
parent 8fdf3ac245
commit 8105ddb5ab
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ win32 {
DEFINES += RENDERDOC_PLATFORM_POSIX RENDERDOC_PLATFORM_APPLE
ICON = $$OSX_ICONFILE
librd.files = $$files($$DESTDIR/librenderdoc.dylib)
librd.files = $$files($$DESTDIR/../lib/librenderdoc.dylib)
librd.path = Contents/lib
QMAKE_BUNDLE_DATA += librd