Add install rules for renderdoc lib & binaries

This commit is contained in:
baldurk
2016-08-02 16:02:41 +02:00
parent 8dafb11456
commit a5c7620d24
4 changed files with 9 additions and 1 deletions
+2
View File
@@ -8,3 +8,5 @@ add_custom_command(OUTPUT QRenderDoc
COMMAND qmake "CONFIG+=debug" "DESTDIR=${output_dir}" ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND MAKEFLAGS= make --no-print-directory)
add_custom_target(build-qrenderdoc ALL DEPENDS QRenderDoc)
install (PROGRAMS ${output_dir}/qrenderdoc DESTINATION bin)
+2
View File
@@ -263,3 +263,5 @@ add_library(renderdoc SHARED ${renderdoc_objects})
target_compile_definitions(renderdoc ${RDOC_DEFINITIONS})
target_include_directories(renderdoc ${RDOC_INCLUDES})
target_link_libraries(renderdoc ${RDOC_LIBRARIES})
install (TARGETS renderdoc DESTINATION lib)
+3 -1
View File
@@ -53,9 +53,11 @@ elseif(UNIX)
set(json_in ${CMAKE_CURRENT_SOURCE_DIR}/renderdoc.json)
set(json_out ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/renderdoc_capture.json)
add_custom_command(OUTPUT ${json_out}
COMMAND sed '{s%...renderdoc.dll%./librenderdoc.so%}' < ${json_in} > ${json_out}
COMMAND sed '{s%...renderdoc.dll%librenderdoc.so%}' < ${json_in} > ${json_out}
DEPENDS ${json_in})
add_custom_target(generate-json ALL DEPENDS ${json_out})
install (FILES ${json_out} DESTINATION share/vulkan/implicit_layer.d)
endif()
add_library(rdoc_vulkan OBJECT ${sources})
+2
View File
@@ -25,3 +25,5 @@ else()
endif()
target_include_directories(renderdoccmd ${includes})
target_link_libraries(renderdoccmd ${libraries})
install (TARGETS renderdoccmd DESTINATION bin)