-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
28 lines (23 loc) · 792 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
28 lines (23 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
file(STRINGS "version.txt" ver)
cmake_policy(SET CMP0048 NEW)
message("Project Version: ${ver}")
project(tetris-mint VERSION ${ver} LANGUAGES C)
cmake_minimum_required (VERSION 3.0)
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
#set(CMAKE_VERBOSE_MAKEFILE ON)
set(CPACK_GENERATOR "DEB")
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "admin@night.horse")
set(CPACK_DEBIAN_PACKAGE_DESCRIPTION "Online Tetris for the CLI")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "ncurses")
message("Enabling building of base binaries")
set(BUILD_TESTS 1)
add_subdirectory(src)
message("Enabling building of release packages")
include(CPack)
if(BUILD_TESTS)
message("Enabling building of testing binaries")
include(CTest)
add_subdirectory(unity)
include_directories(src)
add_subdirectory(test)
endif()