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 "")
11 OUTPUT afb_api.hpp afb_binding.inl
12 DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../generate-binding.py
13 COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/../generate-binding.py)
15 add_library(winman MODULE
21 ${IVI_CON_PROTO} json_helper.cpp json_helper.hpp app.hpp app.cpp result.hpp afb_api.hpp afb_binding.inl)
23 target_include_directories(winman
29 target_link_libraries(winman
35 target_compile_definitions(winman
38 # We do not want source location of messages
39 AFB_BINDING_PRAGMA_NO_VERBOSE_DETAILS
40 WINMAN_VERSION_STRING="${PACKAGE_VERSION}"
41 _GNU_SOURCE) # XXX should I define this here?!
43 if(NOT ${CMAKE_BUILD_TYPE} STREQUAL "Release")
44 target_compile_definitions(winman
49 target_compile_options(winman
51 -Wall -Wextra -Wno-unused-parameter -Wno-comment)
53 set_target_properties(winman
55 INTERPROCEDURAL_OPTIMIZATION ON
59 CXX_STANDARD_REQUIRED ON
63 C_STANDARD_REQUIRED ON
65 LINK_FLAGS "-Wl,--version-script=../../export.map")
67 if (NOT ${SANITIZER_MODE} STREQUAL "none" AND NOT ${SANITIZER_MODE} STREQUAL "")
68 target_compile_options(winman
70 -fsanitize=${SANITIZER_MODE} -g -fno-omit-frame-pointer)
71 set_target_properties(winman
73 LINK_FLAGS "-fsanitize=${SANITIZER_MODE} -g")