Skip to content

Commit

Permalink
[add] global: add make install for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
bgallois committed Sep 8, 2021
1 parent ff38162 commit 0f792f6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/FastTrack-Cli.pro
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,11 @@ unix:!macx {
LIBS += -L/usr/lib/ -fopenmp
LIBS += -L/usr/local/lib -L/usr/lib -L/usr/local/lib64 -L/usr/lib64 -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_imgcodecs -lopencv_videoio -lopencv_video -lopencv_calib3d -lopencv_photo -lopencv_features2d
RCC_DIR=build
}

win32 {
QMAKE_CXXFLAGS += /std:c++latest
LIBS += -LC:\opencv\build\x64\vc15\lib -lopencv_world430
INCLUDEPATH += C:\opencv\build\include
DEPENDPATH += C:\opencv\build\include
target.path = /usr/bin/
license.path = /usr/share/licenses/FastTrack/
license.files = LICENSE
INSTALLS += target license
}

unix:macx {
Expand Down
12 changes: 12 additions & 0 deletions src/FastTrack.pro
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ unix:!macx {
INCLUDEPATH += /usr/local/include/opencv4/
LIBS += -L/usr/lib/ -fopenmp
LIBS += -L/usr/local/lib -L/usr/lib -L/usr/local/lib64 -L/usr/lib64 -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_imgcodecs -lopencv_videoio -lopencv_video -lopencv_calib3d -lopencv_photo -lopencv_features2d

# custom destination INSTALL_ROOT=$PWD/package_root make install
target.path = /usr/bin/
desktop.path = /usr/share/applications/
desktop.files = sh.fasttrack.fasttrack.desktop
metainfo.path = /usr/share/metainfo/
metainfo.files = sh.fasttrack.fasttrack.metainfo.xml
icon.path = /usr/share/icons/
icon.files = src/assets/fasttrack.png
license.path = /usr/share/licenses/FastTrack/
license.files = LICENSE
INSTALLS += target desktop metainfo icon license
}

win32 {
Expand Down
Binary file added src/assets/fasttrack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0f792f6

Please sign in to comment.