summaryrefslogtreecommitdiffstats
path: root/common/CMakeLists.txt
blob: 14eafeec667002ed1fbded81a2400a2a3043c0f5 (plain)
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
PROJECT(eurephiaCOMMON C)
cmake_minimum_required(VERSION 2.6)

# Compiler settigns
INCLUDE_DIRECTORIES(. ../database)

#
# Create a static library
#
# Will contain all common functions used by most of the
# eurephia modules
#
ADD_LIBRARY( eurephiacommon STATIC
             certinfo.c
             eurephia_getsym.c
             eurephia_log.c
             eurephia_values.c
             eurephia_xml.c
             passwd.c
             randstr.c
             sha512.c
             ../database/eurephiadb.c
             ../database/eurephiadb_mapping.c
)

# Output name will be libeurephiacommon.a
SET_TARGET_PROPERTIES( eurephiacommon PROPERTIES COMPILE_FLAGS -fPIC)