QTfrontend/CMakeLists.txt
author unc0rr
Thu, 20 Jul 2006 20:11:32 +0000
changeset 80 3c3dc6a148ca
parent 73 fe1c62875a19
child 84 0f6669da2fcb
permissions -rw-r--r--
- Fixed bug with hedgehog under water using rope - Add locale support in engine - Bots use ljump and hjump - Fix shotgun rating - Support for theme-dependent sprites - Horizon and sky can have any image size - Many small fixes

find_package(Qt4 REQUIRED)

include_directories(${QT_INCLUDES} .)

set(hwfr_src 
	game.cpp
	main.cpp
	hwform.cpp 
	team.cpp
	rndstr.cpp
	sha1.cpp
	netclient.cpp
	teamselect.cpp
	teamselhelper.cpp
	frameTeam.cpp
	vertScrollArea.cpp)

if (WIN32)
	set(hwfr_src ${hwfr_src} res/hedgewars.rc)
endif (WIN32)

set(hwfr_moc_hdrs
	game.h
	hwform.h
	netclient.h
	teamselect.h
	teamselhelper.h
	frameTeam.h
	vertScrollArea.h)

set(hwfr_uis
	hwform.ui)

set(hwfr_rez
	hedgewars.qrc)

qt4_wrap_ui(hwfr_uis_h
	${hwfr_uis})

qt4_add_resources(hwfr_rez_src
	${hwfr_rez})

qt4_wrap_cpp(hwfr_moc_srcs
	${hwfr_moc_hdrs})

add_executable(hedgewars WIN32
	${hwfr_src}
	${hwfr_moc_srcs}
	${hwfr_rez_src})

target_link_libraries(hedgewars 
	${QT_QTCORE_LIBRARY}
	${QT_QTGUI_LIBRARY}
	${QT_QTNETWORK_LIBRARY}
	${QT_QTMAIN_LIBRARY})

install_targets(/bin hedgewars)