CMakeLists.txt

Mon, 15 Dec 2014 03:09:26 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Mon, 15 Dec 2014 03:09:26 +0200
changeset 31
b5b5a6a96d91
parent 14
33b8f428bacb
child 35
413a7de58398
permissions
-rw-r--r--

- added input history (use up/down to navigate)
- rcon sessions are never null anymore

cmake_minimum_required (VERSION 2.4)
project (hurgharama)

set (SOURCE_FILES
	sources/filesystem.cpp
	sources/format.cpp
	sources/interface.cpp
	sources/main.cpp
	sources/md5.cpp
	sources/mystring.cpp
	sources/version.cpp
	sources/network/bytestream.cpp
	sources/network/ipaddress.cpp
	sources/network/rconsession.cpp
	sources/network/udpsocket.cpp
	sources/huffman/bitreader.cpp
	sources/huffman/bitwriter.cpp
	sources/huffman/huffcodec.cpp
	sources/huffman/huffman.cpp
)

set (CURSES_NEED_NCURSES, True)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -W -Wall")
find_package (Curses)
include_directories (${CURSES_INCUDE_DIRS})
include_directories (${CMAKE_CURRENT_BINARY_DIR})
add_executable (${PROJECT_NAME} ${SOURCE_FILES})
target_link_libraries (${PROJECT_NAME} ${CURSES_LIBRARIES})

add_custom_target (make_hginfo_h
	COMMAND python
		"${CMAKE_SOURCE_DIR}/updaterevision/updaterevision.py"
		"${CMAKE_CURRENT_BINARY_DIR}/hginfo.h")
add_dependencies (${PROJECT_NAME} make_hginfo_h)

mercurial