1 cmake_minimum_required (VERSION 2.4) |
1 cmake_minimum_required (VERSION 2.4) |
2 cmake_policy (SET CMP0003 NEW) |
2 cmake_policy (SET CMP0003 NEW) |
3 project (ZFC9000) |
3 project (ZFC9000) |
4 string (TOLOWER ${CMAKE_PROJECT_NAME} TARGET_NAME) |
4 string (TOLOWER ${CMAKE_PROJECT_NAME} TARGET_NAME) |
|
5 set(CMAKE_CXX_STANDARD 17) |
|
6 set(CMAKE_CXX_STANDARD_REQUIRED ON) |
|
7 set(CMAKE_CXX_EXTENSIONS OFF) |
5 |
8 |
6 add_library (huffman STATIC |
9 add_library (huffman STATIC |
7 huffman/bitreader.cpp |
10 huffman/bitreader.cpp |
8 huffman/bitwriter.cpp |
11 huffman/bitwriter.cpp |
9 huffman/huffcodec.cpp |
12 huffman/huffcodec.cpp |
35 sources/mystring.h |
38 sources/mystring.h |
36 sources/network/bytestream.h |
39 sources/network/bytestream.h |
37 sources/network/ipaddress.h |
40 sources/network/ipaddress.h |
38 sources/network/rconsession.h |
41 sources/network/rconsession.h |
39 sources/network/udpsocket.h |
42 sources/network/udpsocket.h |
40 sources/range.h |
|
41 sources/version.h |
43 sources/version.h |
42 ) |
44 ) |
43 |
45 |
44 if (NOT WIN32) |
46 if (NOT WIN32) |
45 find_package (Curses REQUIRED) |
47 find_package (Curses REQUIRED) |