-
Notifications
You must be signed in to change notification settings - Fork 0
/
sfml-project.pro
executable file
·63 lines (47 loc) · 1.47 KB
/
sfml-project.pro
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
TEMPLATE = app
CONFIG += console
CONFIG -= qt
SOURCES += main.cpp
###############################################
# CONFIGURATION
###############################################
CONFIG_APP_NAME = sfml-project
CONFIG += copy_dir_files
TARGET = $${CONFIG_APP_NAME}
macx {
CONFIG_PLATFORM_PATH = mac
CONFIG_ICON_EXTENSION = icns
ICON = $${PWD}/resources/$${CONFIG_PLATFORM_PATH}/app.$${CONFIG_ICON_EXTENSION}
}
win32 {
CONFIG_PLATFORM_PATH = win32
CONFIG_ICON_EXTENSION = png
RC_FILE = $${PWD}/resources/$${CONFIG_PLATFORM_PATH}/app.rc
}
unix:!macx {
CONFIG_PLATFORM_PATH = unix
CONFIG_ICON_EXTENSION = png
ICON = $${PWD}/resources/$${CONFIG_PLATFORM_PATH}/app.$${CONFIG_ICON_EXTENSION}
}
###############################################
# SFML LIBRARY
###############################################
INCLUDEPATH += "$${PWD}/library/sfml/$${CONFIG_PLATFORM_PATH}/include"
LIBS += -L"$${PWD}/library/sfml/$${CONFIG_PLATFORM_PATH}/lib" \
-lsfml-system \
-lsfml-window \
-lsfml-graphics \
-lsfml-audio \
-lsfml-network
macx {
QMAKE_POST_LINK += $(MKDIR) $${CONFIG_APP_NAME}.app/Contents/Frameworks &&
QMAKE_POST_LINK += $${QMAKE_COPY} -r $${PWD}/library/sfml/$${CONFIG_PLATFORM_PATH}/lib/* $${CONFIG_APP_NAME}.app/Contents/Frameworks
}
win32 {
QMAKE_POST_LINK += $${QMAKE_COPY} $${PWD}/library/sfml/$${CONFIG_PLATFORM_PATH}/bin/* $(OBJECTS_DIR)
}
unix:!macx {
# need implement
}
OTHER_FILES += \
resources/win32/app.rc