summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: 9e3ce886f51613ec4119fa039de1835f7a2057e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

#INCLUDE(FindPkgConfig)
#pkg_check_modules(package REQUIRED glib-2.0)

FOREACH(flag ${package_CFLAGS})
	SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)

SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror -fPIE")
SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie")

ADD_SUBDIRECTORY(scripts)