73
|
1 |
find_package(Qt4 REQUIRED)
|
|
2 |
|
|
3 |
include_directories(${QT_INCLUDES} .)
|
|
4 |
|
|
5 |
set(hwfr_src
|
|
6 |
game.cpp
|
|
7 |
main.cpp
|
|
8 |
hwform.cpp
|
|
9 |
team.cpp
|
|
10 |
rndstr.cpp
|
|
11 |
sha1.cpp
|
|
12 |
netclient.cpp
|
|
13 |
teamselect.cpp
|
|
14 |
teamselhelper.cpp
|
|
15 |
frameTeam.cpp
|
84
|
16 |
vertScrollArea.cpp
|
|
17 |
gameconfig.cpp
|
|
18 |
ui_hwform.cpp)
|
73
|
19 |
|
|
20 |
if (WIN32)
|
|
21 |
set(hwfr_src ${hwfr_src} res/hedgewars.rc)
|
|
22 |
endif (WIN32)
|
|
23 |
|
|
24 |
set(hwfr_moc_hdrs
|
|
25 |
game.h
|
|
26 |
hwform.h
|
|
27 |
netclient.h
|
|
28 |
teamselect.h
|
|
29 |
teamselhelper.h
|
|
30 |
frameTeam.h
|
84
|
31 |
vertScrollArea.h
|
|
32 |
gameconfig.h
|
|
33 |
ui_hwform.h)
|
73
|
34 |
|
|
35 |
|
|
36 |
set(hwfr_rez
|
|
37 |
hedgewars.qrc)
|
|
38 |
|
|
39 |
qt4_add_resources(hwfr_rez_src
|
|
40 |
${hwfr_rez})
|
|
41 |
|
|
42 |
qt4_wrap_cpp(hwfr_moc_srcs
|
|
43 |
${hwfr_moc_hdrs})
|
|
44 |
|
|
45 |
add_executable(hedgewars WIN32
|
|
46 |
${hwfr_src}
|
|
47 |
${hwfr_moc_srcs}
|
|
48 |
${hwfr_rez_src})
|
|
49 |
|
|
50 |
target_link_libraries(hedgewars
|
|
51 |
${QT_QTCORE_LIBRARY}
|
|
52 |
${QT_QTGUI_LIBRARY}
|
|
53 |
${QT_QTNETWORK_LIBRARY}
|
|
54 |
${QT_QTMAIN_LIBRARY})
|
|
55 |
|
|
56 |
install_targets(/bin hedgewars)
|