-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
50 lines (44 loc) · 1.42 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.8)
project(yamlDB)
set(CMAKE_C_STANDARD 99)
set(SOURCE_FILES
sources/main.c
sources/database/database.c
sources/database/database.h
sources/utils/xmalloc.c
sources/utils/xmalloc.h
sources/table/table.c
sources/table/table.h
sources/field/field.c
sources/data/data.c
sources/data/data.h
sources/token/token.c
sources/token/token.h
sources/lexer/lexer.c
sources/lexer/lexer.h
sources/hash_map/hash_map.c
sources/hash_map/hash_map.h
sources/parser/parser.c
sources/parser/parser.h
sources/utils/to_lower.c
sources/utils/to_lower.h
sources/statement/statement.c
sources/statement/statement.h
sources/data/data.h
sources/utils/strsplit.c
sources/utils/strsplit.h
sources/select/select.c
sources/select/union.c
sources/interface/interface.c
sources/interface/interface.h
sources/gtk/gtk.c
sources/gtk/gtk.h
sources/print_color/print_color.c
sources/print_color/print_color.h)
find_package(PkgConfig REQUIRED)
pkg_check_modules(GTK3 REQUIRED gtk+-3.0)
include_directories(${GTK3_INCLUDE_DIRS})
link_directories(${GTK3_LIBRARY_DIRS})
add_definitions(${GTK3_CFLAGS_OTHER})
add_executable(yamlDB ${SOURCE_FILES})
target_link_libraries(yamlDB ${GTK3_LIBRARIES})