🎉 Added install target

This commit is contained in:
Edgar 2021-02-15 16:02:27 +01:00 committed by Rasmus Karlsson
parent b1604a5acf
commit dc383b97ed
3 changed files with 17 additions and 1 deletions

View file

@ -116,6 +116,7 @@ jobs:
rapidjson-dev \
libssl-dev \
libboost-dev \
libxcb-randr0-dev \
libboost-system-dev \
libboost-filesystem-dev \
libpulse-dev \

View file

@ -1,5 +1,5 @@
freebsd {
INCLUDEPATH += /usr/local/include
INCLUDEPATH += /usr/local/include/qt5keychain
LIBS += -lqt5keychain
} else {
unix:!android:!macx:!ios {

View file

@ -273,4 +273,19 @@ if (MSVC)
COMMAND windeployqt $<TARGET_FILE:${PROJECT_NAME}> --release --no-compiler-runtime --no-translations --no-opengl-sw --dir ${RUNTIME_OUTPUT_DIRECTORY}
WORKING_DIRECTORY ${RUNTIME_OUTPUT_DIRECTORY}
)
elseif (UNIX)
install(TARGETS ${PROJECT_NAME}
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib/static
)
install(FILES ${CMAKE_SOURCE_DIR}/resources/com.chatterino.chatterino.desktop
DESTINATION share/applications
)
install(FILES ${CMAKE_SOURCE_DIR}/resources/icon.png
RENAME com.chatterino.chatterino.png
DESTINATION share/icons/hicolor/256x256/apps
)
endif ()