1 wlproto(IVI_CON ivi-controller)
4 pkg_check_modules(AFB REQUIRED afb-daemon==1.0)
5 pkg_check_modules(SD REQUIRED libsystemd>=222)
7 # We do not want a prefix for our module
8 set(CMAKE_SHARED_MODULE_PREFIX "")
10 add_library(winman MODULE
16 ${IVI_CON_PROTO} json_helper.cpp json_helper.hpp)
18 target_include_directories(winman
24 target_link_libraries(winman
30 target_compile_definitions(winman
33 # We do not want source location of messages
34 AFB_BINDING_PRAGMA_NO_VERBOSE_DETAILS
35 WINMAN_VERSION_STRING="${PACKAGE_VERSION}"
36 _GNU_SOURCE) # XXX should I define this here?!
38 if(NOT ${CMAKE_BUILD_TYPE} STREQUAL "Release")
39 target_compile_definitions(winman
44 target_compile_options(winman
46 -Wall -Wextra -Wno-unused-parameter -Wno-comment)
48 set_target_properties(winman
50 INTERPROCEDURAL_OPTIMIZATION ON
54 CXX_STANDARD_REQUIRED ON
58 C_STANDARD_REQUIRED ON
60 LINK_FLAGS "-Wl,--version-script=../../export.map")
62 if (NOT ${SANITIZER_MODE} STREQUAL "none" AND NOT ${SANITIZER_MODE} STREQUAL "")
63 target_compile_options(winman
65 -fsanitize=${SANITIZER_MODE} -g -fno-omit-frame-pointer)
66 set_target_properties(winman
68 LINK_FLAGS "-fsanitize=${SANITIZER_MODE} -g")