forked from gnulag/circ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
53 lines (41 loc) · 1.25 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 2.8)
project(circ C)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
set(CMAKE_BUILD_TYPE Debug)
include(PrettyCompilerColors)
find_package(GLIB COMPONENTS gobject REQUIRED)
include_directories(
./lib
${GLIB_INCLUDE_DIRS}
)
add_executable(circ
"lib/irc-parser/ircium-message.c"
"lib/irc-parser/ircium-message-tag.c"
"lib/config/config.c"
"lib/config/config.h"
"lib/log/log.c"
"lib/log/log.h"
"lib/irc/irc.c"
"lib/b64/decode.c"
"lib/b64/encode.c"
"src/circ.c"
)
find_library(LIBEV_LIBS NAMES ev REQUIRED)
find_library(LIBGNUTLS_LIBS NAMES gnutls REQUIRED)
find_library(LIBUNISTRING_LIBS NAMES unistring REQUIRED)
target_link_libraries(
circ
${LIBEV_LIBS}
${LIBGNUTLS_LIBS}
${LIBUNISTRING_LIBS}
${GLIB_GOBJECT_LIBRARIES}
${GLIB_LIBRARIES}
)
# glib_dep = dependency('glib-2.0')
# gobject_dep = dependency('gobject-2.0')
# ircium_irc_parser_include_dir = include_directories('.')
# ircium_irc_parser_lib = static_library('ircium-irc-parser',
# 'ircium-message.c','ircium-message-tag.c',
# dependencies : [ glib_dep, gobject_dep ])
# ircium_irc_parser_dep = declare_dependency(link_with : ircium_irc_parser_lib,
# include_directories : ircium_irc_parser_include_dir)