-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
50 lines (44 loc) · 1.22 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
cmake_minimum_required(VERSION 3.16)
project(Textlicious C)
set(CMAKE_C_STANDARD 99)
include_directories(.)
include(FetchContent)
FetchContent_Declare(
NNG
GIT_REPOSITORY "https://github.com/nanomsg/nng"
GIT_TAG v1.5.2
)
FetchContent_GetProperties(NNG)
if (NOT nng_POPULATED)
FetchContent_Populate(NNG)
add_subdirectory(${nng_SOURCE_DIR} ${nng_BINARY_DIR})
endif()
set(SOURCE_FILES
termInput.c
list.c
list.h
packedSet.c
packedSet.h
source.c
pool.c
pool.h ecs.c ecs.h
termInput.h
vec.c
vec.h
server.c
server.h
source.h
Content/item.h Content/item.c
deps/logger/log.c
Content/meatbag.h Content/meatbag.c
Content/humanoid.c Content/humanoid.h
Content/lookable.c Content/lookable.h
Content/item.c Content/item.h
Content/inventory.c Content/inventory.h
Content/card.c Content/card.h
Content/deck.h Content/deck.c
)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DLOG_USE_COLOR")
add_executable(Textlicious ${SOURCE_FILES})
target_link_libraries(Textlicious nng m)
target_include_directories(Textlicious PRIVATE ${nng_SOURCE_DIRS}/include deps/logger)