add lib and include for libexif on mac
This commit is contained in:
13
README.md
13
README.md
@@ -46,3 +46,16 @@ qmake ../src/slide.pro
|
|||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### macOS
|
||||||
|
|
||||||
|
Prerequisite: brew
|
||||||
|
|
||||||
|
```
|
||||||
|
brew install qt5
|
||||||
|
brew install libexif
|
||||||
|
mkdir -p build
|
||||||
|
cd build
|
||||||
|
qmake ../src/slide.pro
|
||||||
|
make
|
||||||
|
```
|
||||||
|
|||||||
@@ -22,6 +22,10 @@ DEFINES += QT_DEPRECATED_WARNINGS
|
|||||||
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
||||||
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||||
|
|
||||||
|
mac: INCLUDEPATH += $$system(brew --prefix libexif)/include/
|
||||||
|
mac: QMAKE_LFLAGS += -L$$system(brew --prefix libexif)/lib
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
main.cpp \
|
main.cpp \
|
||||||
|
|||||||
Reference in New Issue
Block a user