X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2FCMakeLists.txt;h=75fc4f0992acb29e04c3180cebc6b71f37ea1095;hb=7aa5eff9767662e54684254f736ba009ebea2561;hp=05122064c275700a26d9ed823ed3582864681b7f;hpb=a8c5306b1d0ac21bd745ae553f59c6eb189e04a4;p=src%2Fapp-framework-main.git diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0512206..75fc4f0 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") ########################################################################### @@ -99,7 +99,9 @@ add_executable(wgtpkg-installer wgtpkg-installer.c) target_link_libraries(wgtpkg-installer wgtpkg wgt secwrp utils) -add_executable(af-usrd af-usrd.c) -target_link_libraries(af-usrd afm secwrp wgt utils) +add_executable(afm-main-daemon afm-main-daemon.c) +target_link_libraries(afm-main-daemon afm secwrp wgt utils) +install(TARGETS wgtpkg-sign wgtpkg-pack wgtpkg-info wgtpkg-installer DESTINATION ${CMAKE_INSTALL_FULL_BINDIR}) +install(TARGETS afm-main-daemon DESTINATION ${CMAKE_INSTALL_FULL_BINDIR})