-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
34 lines (30 loc) · 890 Bytes
/
CMakeLists.txt
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
29
30
31
32
33
34
cmake_minimum_required(VERSION 3.9)
project(attic VERSION 0.1.0 LANGUAGES C)
set(PROJECT_NAME attic)
set(CMAKE_C_STANDARD 99)
set(INCLUDE_DIR src third_party)
configure_file(src/include/version.h.in ${PROJECT_BINARY_DIR}/include/version.h @ONLY)
add_executable(${PROJECT_NAME}
src/cmd/cmd.c
src/cmd/cmd.h
src/cmd/config.c
src/cmd/install.c
src/cmd/list.c
src/cmd/reinstall.c
src/cmd/uninstall.c
src/color.c
src/color.h
src/config.c
src/config.h
src/error.h
src/main.c
src/util.c
src/util.h
src/verbose.c
src/verbose.h
third_party/cJSON/cJSON.c
third_party/cJSON/cJSON.h
third_party/sds/sds.c
third_party/sds/sds.h)
target_include_directories(${PROJECT_NAME} PRIVATE ${INCLUDE_DIR} ${PROJECT_BINARY_DIR}/include)
target_compile_options(${PROJECT_NAME} PRIVATE -Werror -Wall -Wextra -Wstrict-prototypes)