QTfrontend/CMakeLists.txt
author unc0rr
Tue, 25 Jul 2006 13:32:11 +0000
changeset 85 44d9045b26ff
parent 84 0f6669da2fcb
child 86 664b536a1c27
permissions -rw-r--r--
New GameCFGWidget. Now it's possible to set forts mode from ui
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
73
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
     1
find_package(Qt4 REQUIRED)
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
     2
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
     3
include_directories(${QT_INCLUDES} .)
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
     4
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
     5
set(hwfr_src 
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
     6
	game.cpp
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
     7
	main.cpp
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
     8
	hwform.cpp 
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
     9
	team.cpp
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    10
	rndstr.cpp
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    11
	sha1.cpp
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    12
	netclient.cpp
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    13
	teamselect.cpp
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    14
	teamselhelper.cpp
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    15
	frameTeam.cpp
84
0f6669da2fcb Start rewrite ui
unc0rr
parents: 73
diff changeset
    16
	vertScrollArea.cpp
85
44d9045b26ff New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents: 84
diff changeset
    17
	gameuiconfig.cpp
44d9045b26ff New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents: 84
diff changeset
    18
	ui_hwform.cpp
44d9045b26ff New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents: 84
diff changeset
    19
	gamecfgwidget.cpp)
73
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    20
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    21
if (WIN32)
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    22
	set(hwfr_src ${hwfr_src} res/hedgewars.rc)
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    23
endif (WIN32)
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    24
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    25
set(hwfr_moc_hdrs
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    26
	game.h
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    27
	hwform.h
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    28
	netclient.h
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    29
	teamselect.h
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    30
	teamselhelper.h
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    31
	frameTeam.h
84
0f6669da2fcb Start rewrite ui
unc0rr
parents: 73
diff changeset
    32
	vertScrollArea.h
85
44d9045b26ff New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents: 84
diff changeset
    33
	gameuiconfig.h
44d9045b26ff New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents: 84
diff changeset
    34
	ui_hwform.h
44d9045b26ff New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents: 84
diff changeset
    35
	gamecfgwidget.h)
73
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    36
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    37
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    38
set(hwfr_rez
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    39
	hedgewars.qrc)
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    40
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    41
qt4_add_resources(hwfr_rez_src
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    42
	${hwfr_rez})
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    43
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    44
qt4_wrap_cpp(hwfr_moc_srcs
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    45
	${hwfr_moc_hdrs})
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    46
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    47
add_executable(hedgewars WIN32
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    48
	${hwfr_src}
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    49
	${hwfr_moc_srcs}
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    50
	${hwfr_rez_src})
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    51
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    52
target_link_libraries(hedgewars 
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    53
	${QT_QTCORE_LIBRARY}
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    54
	${QT_QTGUI_LIBRARY}
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    55
	${QT_QTNETWORK_LIBRARY}
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    56
	${QT_QTMAIN_LIBRARY})
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    57
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    58
install_targets(/bin hedgewars)