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
|
|
16 |
vertScrollArea.cpp)
|
|
17 |
|
|
18 |
if (WIN32)
|
|
19 |
set(hwfr_src ${hwfr_src} res/hedgewars.rc)
|
|
20 |
endif (WIN32)
|
|
21 |
|
|
22 |
set(hwfr_moc_hdrs
|
|
23 |
game.h
|
|
24 |
hwform.h
|
|
25 |
netclient.h
|
|
26 |
teamselect.h
|
|
27 |
teamselhelper.h
|
|
28 |
frameTeam.h
|
|
29 |
vertScrollArea.h)
|
|
30 |
|
|
31 |
set(hwfr_uis
|
|
32 |
hwform.ui)
|
|
33 |
|
|
34 |
set(hwfr_rez
|
|
35 |
hedgewars.qrc)
|
|
36 |
|
|
37 |
qt4_wrap_ui(hwfr_uis_h
|
|
38 |
${hwfr_uis})
|
|
39 |
|
|
40 |
qt4_add_resources(hwfr_rez_src
|
|
41 |
${hwfr_rez})
|
|
42 |
|
|
43 |
qt4_wrap_cpp(hwfr_moc_srcs
|
|
44 |
${hwfr_moc_hdrs})
|
|
45 |
|
|
46 |
add_executable(hedgewars WIN32
|
|
47 |
${hwfr_src}
|
|
48 |
${hwfr_moc_srcs}
|
|
49 |
${hwfr_rez_src})
|
|
50 |
|
|
51 |
target_link_libraries(hedgewars
|
|
52 |
${QT_QTCORE_LIBRARY}
|
|
53 |
${QT_QTGUI_LIBRARY}
|
|
54 |
${QT_QTNETWORK_LIBRARY}
|
|
55 |
${QT_QTMAIN_LIBRARY})
|
|
56 |
|
|
57 |
install_targets(/bin hedgewars)
|