X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=conf.d%2Fcmake%2Fconfig.cmake;h=c84c75a4e59b4d999b4c5a71cdc27e3cec2c71d8;hb=refs%2Ftags%2F5.99.2;hp=172e20a2f8d2e142d64f082125ea66472039fb4f;hpb=d7a6282e16ea060cdbd27d7c2c71cc6c0a56dc5c;p=apps%2Fagl-service-can-low-level.git diff --git a/conf.d/cmake/config.cmake b/conf.d/cmake/config.cmake index 172e20a2..c84c75a4 100644 --- a/conf.d/cmake/config.cmake +++ b/conf.d/cmake/config.cmake @@ -68,11 +68,11 @@ set (PKG_REQUIRED_LIST # Prefix path where will be installed the files # Default: /usr/local (need root permission to write in) # ------------------------------------------------------ -set(CMAKE_INSTALL_PREFIX $ENV{HOME}/opt) +set(INSTALL_PREFIX $ENV{HOME}/opt) # Customize link option # ----------------------------- -list (APPEND link_libraries -pthread --coverage) +list (APPEND link_libraries -pthread) # Compilation options definition # Use CMake generator expressions to specify only for a specific language @@ -108,21 +108,16 @@ set(CXX_COMPILE_OPTIONS -pthread CACHE STRING "Compilation flags for C++ languag # -ggdb # -D_FORTIFY_SOURCE=2 # CACHE STRING "Compilation flags for DEBUG build type.") -#set(CCOV_COMPILE_OPTIONS +#set(COVERAGE_COMPILE_OPTIONS # -g # -O2 # --coverage -# CACHE STRING "Compilation flags for CCOV build type.") +# CACHE STRING "Compilation flags for COVERAGE build type.") #set(RELEASE_COMPILE_OPTIONS -# -g # -O2 +# -D_FORTIFY_SOURCE=2 # CACHE STRING "Compilation flags for RELEASE build type.") -# (BUG!!!) as PKG_CONFIG_PATH does not work [should be an env variable] -# --------------------------------------------------------------------- -set(CMAKE_PREFIX_PATH ${CMAKE_INSTALL_PREFIX}/lib64/pkgconfig ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig) -set(LD_LIBRARY_PATH ${CMAKE_INSTALL_PREFIX}/lib64 ${CMAKE_INSTALL_PREFIX}/lib) - # Optional location for config.xml.in # ----------------------------------- #set(WIDGET_ICON "\"${CMAKE_SOURCE_DIR}conf.d/wgt/${PROJECT_ICON}\"" CACHE PATH "Path to the widget icon")