Skip to content

Commit

Permalink
cmake: install player executables
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed May 19, 2017
1 parent 417b47a commit 19f9663
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ if(Qt5Quick_FOUND)
)
target_include_directories(QMLPlayer PRIVATE QMLPlayer/qtquick2applicationviewer)
target_link_libraries(QMLPlayer Qt5::Quick common)
install(TARGETS QMLPlayer
RUNTIME DESTINATION ${QTAV_INSTALL_BINS}
)
endif()
if(Qt5Widgets_FOUND)
set(MODULE Player)
Expand All @@ -122,6 +125,9 @@ if(Qt5Widgets_FOUND)
add_executable(Player ${EXE_TYPE} ${PLAYER_SRC} ${PLAYER_HEADERS} ${PLAYER_RES} ${RC_FILE})
target_link_libraries(Player QtAVWidgets common)

install(TARGETS Player
RUNTIME DESTINATION ${QTAV_INSTALL_BINS}
)
if(BUILD_EXAMPLES)
SET(FILTERS_QRC filters/res.qrc)
SOURCE_GROUP("Resources" FILES ${FILTERS_QRC})
Expand Down

0 comments on commit 19f9663

Please sign in to comment.