CMakeLists.txt

Fri, 15 May 2015 20:13:36 +0300

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Fri, 15 May 2015 20:13:36 +0300
changeset 76
6de6d9a64ebd
parent 46
19be47c9bab7
child 81
a18aaf460648
permissions
-rw-r--r--

- moved huffman from sources/ to top level because it's external

cmake_minimum_required (VERSION 2.4)
project (zfc9000)

add_library (huffman STATIC
	huffman/bitreader.cpp
	huffman/bitwriter.cpp
	huffman/huffcodec.cpp
	huffman/huffman.cpp
)

set (SOURCE_FILES
	sources/coloredline.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
)

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})
include_directories (huffman)
add_executable (${PROJECT_NAME} ${SOURCE_FILES})
target_link_libraries (${PROJECT_NAME} ${CURSES_LIBRARIES} huffman)

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