summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
blob: 29662a665916d0afca8ffaf349b36e748a9befd2 (plain) (blame)
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
cmake_minimum_required(VERSION 3.12)

project(
    misplays
    VERSION 0.0.1
    LANGUAGES C
)

set_property(GLOBAL PROPERTY C_STANDARD 99)
add_compile_options(-W -Wall -Wextra -Wpedantic -g)
add_compile_definitions(
    MISPLAYS_VERSION=${PROJECT_VERSION}
    _GNU_SOURCE
)

add_executable(${PROJECT_NAME}
    console.c
    curshelpers.c
    misplays.c
)

target_link_libraries(${PROJECT_NAME}
    ncurses
    panel
)

install(TARGETS ${PROJECT_NAME})