X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2FCMakeLists.txt;h=2b813674315de218c742e4c893d787f092ec6244;hb=cb5568e11bbe2d499d4d43dc30a779a5869b12ea;hp=565f9fdc1d6d8bb9623c5131bf6f3b133535a7a4;hpb=2d220fc2257d24c4be7ca7b60ba526b654395220;p=staging%2Fwindowmanager.git diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 565f9fd..2b81367 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -4,8 +4,8 @@ add_executable(winman main.cpp wayland.cpp wayland.hpp - util.c - util.h + util.cpp + util.hpp ${IVI_CON_PROTO}) target_compile_definitions(winman @@ -13,6 +13,12 @@ target_compile_definitions(winman WINMAN_VERSION_STRING="${PACKAGE_VERSION}" _GNU_SOURCE) # XXX should I define this here?! +if(${CMAKE_BUILD_TYPE} STREQUAL "Debug") + target_compile_definitions(winman + PRIVATE + _GLIBCXX_DEBUG) +endif() + target_compile_options(winman PRIVATE -Wall -Wextra -Wno-unused-parameter -Wno-comment)