diff options
author | José Bollo <jose.bollo@iot.bzh> | 2015-12-18 17:08:35 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2015-12-18 17:08:35 +0100 |
commit | a60988dad78ea22041771a9f40ed7e8f4c63b816 (patch) | |
tree | 14d5bc50501ced7f3faf79c5267f99478e49d6b4 | |
parent | a8c5306b1d0ac21bd745ae553f59c6eb189e04a4 (diff) |
fix directories and options
Change-Id: I83c0a65248faaecf8a1b2270003bd0cbd519794a
-rw-r--r-- | CMakeLists.txt | 7 | ||||
-rw-r--r-- | src/CMakeLists.txt | 10 |
2 files changed, 11 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 504162b..b8b8b27 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,9 +20,14 @@ cmake_minimum_required(VERSION 2.8) project("afm-main" LANGUAGES "C") +set(rootdir ".") +set(sysconfdir "${rootdir}/etc") +set(prefix "${rootdir}/usr") +set(datadir "${prefix}/share") + set(afm_name "aglfwk") set(afm_confdir "${sysconfdir}/${afm_name}") -set(afm_datadir "${datadir}/$(afm_name}") +set(afm_datadir "${datadir}/${afm_name}") set(afm_appdir "${afm_datadir}/applications") set(afm_icondir "${afm_datadir}/icons") set(afm_prefix "urn:agl:") diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0512206..8bd7863 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -39,13 +39,13 @@ include_directories(simulation) add_compile_options(-Wall -Wno-pointer-sign) add_compile_options(-ffunction-sections -fdata-sections) +add_compile_options(-fPIC) add_compile_options(-Wl,--gc-sections) -#SET(CMAKE_C_FLAGS_PROFILING "-g -O0 -pg -Wp,-U_FORTIFY_SOURCE") -#SET(CMAKE_C_FLAGS_DEBUG "-g -O0 -ggdb -Wp,-U_FORTIFY_SOURCE") -#SET(CMAKE_C_FLAGS_RELEASE "-g -O2") -#SET(CMAKE_C_FLAGS_CCOV "-g -O2 --coverage") -#ADD_COMPILE_OPTIONS("-fPIC") +set(CMAKE_C_FLAGS_PROFILING "-g -O0 -pg -Wp,-U_FORTIFY_SOURCE") +set(CMAKE_C_FLAGS_DEBUG "-g -O0 -ggdb -Wp,-U_FORTIFY_SOURCE") +set(CMAKE_C_FLAGS_RELEASE "-g -O2") +set(CMAKE_C_FLAGS_CCOV "-g -O2 --coverage") ########################################################################### |