-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
55 lines (48 loc) · 1.09 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
project(cxlibproj C)
option(CXLIB_BUILD_TESTS "Build the test program" ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(SOURCES
include/cx_alloc.h
include/cx_array.h
include/cx_bqueue.h
include/cx_cqueue.h
include/cx_error.h
include/cx_hmap.h
include/cx_hmap2.h
include/cx_json_build.h
include/cx_json_parse.h
include/cx_tflow.h
include/cx_logger.h
include/cx_pool_allocator.h
include/cx_queue.h
include/cx_str.h
include/cx_timer.h
include/cx_tpool.h
include/cx_tracer.h
include/cx_var.h
include/cx_writer.h
src/cx_alloc.c
src/cx_pool_allocator.c
src/cx_logger.c
src/cx_str.c
src/cx_hmap.c
src/cx_timer.c
src/cx_var.c
src/cx_bqueue.c
src/cx_json_build.c
src/cx_json_parse.c
src/cx_tracer.c
src/cx_tflow.c
src/json.c
src/json.h
src/cx_tpool.c
src/cx_writer.c
)
add_library(cxlib ${SOURCES})
target_include_directories(cxlib
PUBLIC ${PROJECT_SOURCE_DIR}/include
)
if (CXLIB_BUILD_TESTS)
add_subdirectory(tests)
endif()