QTfrontend/CMakeLists.txt
author displacer
Fri, 18 Aug 2006 20:37:50 +0000
changeset 117 d21a48200772
parent 99 fd9613278d1b
child 119 665c07365cb6
permissions -rw-r--r--
HWTeam integration in team select widget
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
89
f9db56409a86 - Fix various bugs
unc0rr
parents: 86
diff changeset
    19
	gamecfgwidget.cpp
93
c21ff3af56cf - small fix to translation
unc0rr
parents: 89
diff changeset
    20
	pages.cpp
c21ff3af56cf - small fix to translation
unc0rr
parents: 89
diff changeset
    21
	SquareLabel.cpp)
73
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    22
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    23
if (WIN32)
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    24
	set(hwfr_src ${hwfr_src} res/hedgewars.rc)
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    25
endif (WIN32)
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    26
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    27
set(hwfr_moc_hdrs
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    28
	game.h
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    29
	hwform.h
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    30
	netclient.h
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    31
	teamselect.h
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    32
	teamselhelper.h
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    33
	frameTeam.h
84
0f6669da2fcb Start rewrite ui
unc0rr
parents: 73
diff changeset
    34
	vertScrollArea.h
85
44d9045b26ff New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents: 84
diff changeset
    35
	gameuiconfig.h
44d9045b26ff New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents: 84
diff changeset
    36
	ui_hwform.h
86
664b536a1c27 Predefined teams, 'simple game' doesn't need to create team
unc0rr
parents: 85
diff changeset
    37
	gamecfgwidget.h
89
f9db56409a86 - Fix various bugs
unc0rr
parents: 86
diff changeset
    38
	predefteams.h
93
c21ff3af56cf - small fix to translation
unc0rr
parents: 89
diff changeset
    39
	pages.h
c21ff3af56cf - small fix to translation
unc0rr
parents: 89
diff changeset
    40
	SquareLabel.h)
73
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    41
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    42
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    43
set(hwfr_rez
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    44
	hedgewars.qrc)
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    45
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    46
qt4_add_resources(hwfr_rez_src
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    47
	${hwfr_rez})
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    48
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    49
qt4_wrap_cpp(hwfr_moc_srcs
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    50
	${hwfr_moc_hdrs})
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    51
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    52
add_executable(hedgewars WIN32
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    53
	${hwfr_src}
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    54
	${hwfr_moc_srcs}
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    55
	${hwfr_rez_src})
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    56
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    57
target_link_libraries(hedgewars 
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    58
	${QT_QTCORE_LIBRARY}
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    59
	${QT_QTGUI_LIBRARY}
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    60
	${QT_QTNETWORK_LIBRARY}
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    61
	${QT_QTMAIN_LIBRARY})
fe1c62875a19 - More smooth hedgehogs physics
unc0rr
parents:
diff changeset
    62
89
f9db56409a86 - Fix various bugs
unc0rr
parents: 86
diff changeset
    63
install(PROGRAMS "hedgewars${CMAKE_EXECUTABLE_SUFFIX}" DESTINATION bin)
99
fd9613278d1b - On windows make packages with all needed dlls
unc0rr
parents: 93
diff changeset
    64
fd9613278d1b - On windows make packages with all needed dlls
unc0rr
parents: 93
diff changeset
    65
fd9613278d1b - On windows make packages with all needed dlls
unc0rr
parents: 93
diff changeset
    66
if(WIN32 AND NOT UNIX)
fd9613278d1b - On windows make packages with all needed dlls
unc0rr
parents: 93
diff changeset
    67
	string(REPLACE "\\" "/" QT_BIN_DIR $ENV{QTDIR}/bin)
fd9613278d1b - On windows make packages with all needed dlls
unc0rr
parents: 93
diff changeset
    68
fd9613278d1b - On windows make packages with all needed dlls
unc0rr
parents: 93
diff changeset
    69
	install(FILES
fd9613278d1b - On windows make packages with all needed dlls
unc0rr
parents: 93
diff changeset
    70
		"${QT_BIN_DIR}/QtNetwork4.dll"
fd9613278d1b - On windows make packages with all needed dlls
unc0rr
parents: 93
diff changeset
    71
		"${QT_BIN_DIR}/QtGui4.dll"
fd9613278d1b - On windows make packages with all needed dlls
unc0rr
parents: 93
diff changeset
    72
		"${QT_BIN_DIR}/QtCore4.dll"
fd9613278d1b - On windows make packages with all needed dlls
unc0rr
parents: 93
diff changeset
    73
		"${QT_BIN_DIR}/mingwm10.dll"
fd9613278d1b - On windows make packages with all needed dlls
unc0rr
parents: 93
diff changeset
    74
		DESTINATION bin)
fd9613278d1b - On windows make packages with all needed dlls
unc0rr
parents: 93
diff changeset
    75
endif(WIN32 AND NOT UNIX)