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
18 target_include_directories(winman
24 target_link_libraries(winman
30 target_compile_definitions(winman
32 WINMAN_VERSION_STRING="${PACKAGE_VERSION}"
33 _GNU_SOURCE) # XXX should I define this here?!
35 if(NOT ${CMAKE_BUILD_TYPE} STREQUAL "Release")
36 target_compile_definitions(winman
41 target_compile_options(winman
43 -Wall -Wextra -Wno-unused-parameter -Wno-comment)
45 set_target_properties(winman
47 INTERPROCEDURAL_OPTIMIZATION ON
51 CXX_STANDARD_REQUIRED ON
55 C_STANDARD_REQUIRED ON
57 LINK_FLAGS "-Wl,--version-script=../../export.map")
59 if (NOT ${SANITIZER_MODE} STREQUAL "none" AND NOT ${SANITIZER_MODE} STREQUAL "")
60 target_compile_options(winman
62 -fsanitize=${SANITIZER_MODE} -g -fno-omit-frame-pointer)
63 set_target_properties(winman
65 LINK_FLAGS "-fsanitize=${SANITIZER_MODE} -g")