forked from NHERI-SimCenter/HydroUQ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ConanHelper.pri
34 lines (27 loc) · 862 Bytes
/
ConanHelper.pri
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#Making sure we are not using multi configuration
CONFIG -= debug_and_release
#Checking Conan version
message(Detecting Conan: $$system(conan -v))
#Detecting build type
CONFIG(release, debug|release) {
BUILD_TYPE = Release
}
CONFIG(debug, debug|release) {
BUILD_TYPE = Debug
}
#Running Conan to install dependencies
message(Running Conan)
CONAN_INSTALL_COMMAND=cd $$OUT_PWD && conan install $$PWD -s build_type=$$BUILD_TYPE --build missing
message($$CONAN_INSTALL_COMMAND)
system($$CONAN_INSTALL_COMMAND)
#Set output directories for Windows
win32{
DESTDIR=$$OUT_PWD/$$BUILD_TYPE
OBJECTS_DIR=$$OUT_PWD/$$BUILD_TYPE/.moc
MOC_DIR=$$OUT_PWD/$$BUILD_TYPE/.moc
UI_DIR=$$OUT_PWD/$$BUILD_TYPE/.ui
RCC_DIR=$$OUT_PWD/$$BUILD_TYPE/.rcc
}
#Conan setup to include generated pri
CONFIG += conan_basic_setup
include($$OUT_PWD/conanbuildinfo.pri)