add install commands

instead of "make" use "make install/strip" release compile


Former-commit-id: f4dd2d9e1a4d815b667665892a3bd9cec64218a3
This commit is contained in:
redpanther 2016-03-10 12:22:44 +01:00
parent 12b406dd4b
commit e01bcd708d
7 changed files with 62 additions and 44 deletions

View File

@ -60,6 +60,9 @@ if(ENABLE_OSX AND ENABLE_DISPMANX)
endif(ENABLE_OSX AND ENABLE_DISPMANX) endif(ENABLE_OSX AND ENABLE_DISPMANX)
SET ( PROTOBUF_INSTALL_BIN_DIR ${CMAKE_SOURCE_DIR}/deploy )
SET ( PROTOBUF_INSTALL_LIB_DIR ${CMAKE_SOURCE_DIR}/deploy )
#if(ENABLE_QT5) #if(ENABLE_QT5)
# TODO vs ENABLE_QT4? # TODO vs ENABLE_QT4?
#endif(ENABLE_QT5) #endif(ENABLE_QT5)

View File

@ -31,13 +31,13 @@ else(ENABLE_QT5)
QT4_WRAP_CPP(Hyperion_AML_HEADERS_MOC ${Hyperion_AML_QT_HEADERS}) QT4_WRAP_CPP(Hyperion_AML_HEADERS_MOC ${Hyperion_AML_QT_HEADERS})
endif(ENABLE_QT5) endif(ENABLE_QT5)
add_executable(hyperion-amlogic add_executable(${PROJECT_NAME}
${Hyperion_AML_HEADERS} ${Hyperion_AML_HEADERS}
${Hyperion_AML_SOURCES} ${Hyperion_AML_SOURCES}
${Hyperion_AML_HEADERS_MOC} ${Hyperion_AML_HEADERS_MOC}
) )
target_link_libraries(hyperion-amlogic target_link_libraries(${PROJECT_NAME}
getoptPlusPlus getoptPlusPlus
blackborder blackborder
hyperion-utils hyperion-utils
@ -46,7 +46,10 @@ target_link_libraries(hyperion-amlogic
pthread pthread
) )
qt4_use_modules(hyperion-amlogic qt4_use_modules(${PROJECT_NAME}
Core Core
Gui Gui
Network) Network)
install ( TARGETS ${PROJECT_NAME} DESTINATION "${CMAKE_SOURCE_DIR}/deploy/bin" )

View File

@ -63,3 +63,6 @@ else(ENABLE_QT5)
Network Network
) )
endif(ENABLE_QT5) endif(ENABLE_QT5)
install ( TARGETS ${PROJECT_NAME} DESTINATION "${CMAKE_SOURCE_DIR}/deploy/bin" )

View File

@ -39,3 +39,5 @@ target_link_libraries(hyperion-remote
jsoncpp jsoncpp
getoptPlusPlus getoptPlusPlus
${QT_LIBRARIES}) ${QT_LIBRARIES})
install ( TARGETS ${PROJECT_NAME} DESTINATION "${CMAKE_SOURCE_DIR}/deploy/bin" )

View File

@ -53,3 +53,6 @@ target_link_libraries(hyperion-v4l2
pthread pthread
${QT_LIBRARIES} ${QT_LIBRARIES}
) )
install ( TARGETS ${PROJECT_NAME} DESTINATION "${CMAKE_SOURCE_DIR}/deploy/bin" )

View File

@ -62,3 +62,5 @@ qt4_use_modules(hyperion-x11
Gui Gui
Network) Network)
endif(ENABLE_QT5) endif(ENABLE_QT5)
install ( TARGETS ${PROJECT_NAME} DESTINATION "${CMAKE_SOURCE_DIR}/deploy/bin" )

View File

@ -33,3 +33,5 @@ endif (ENABLE_AMLOGIC)
if (ENABLE_PROTOBUF) if (ENABLE_PROTOBUF)
target_link_libraries(hyperiond protoserver) target_link_libraries(hyperiond protoserver)
endif (ENABLE_PROTOBUF) endif (ENABLE_PROTOBUF)
install ( TARGETS hyperiond DESTINATION "${CMAKE_SOURCE_DIR}/deploy/bin" )