~aleteoryx/muditaos

ref: 910bad720a1316810c8437dd66140cb8fb966ab5 muditaos/module-services/service-eink/board/linux/renderer/CMakeLists.txt -rw-r--r-- 1.8 KiB
910bad72 — Radoslaw Wicik [EDG-4743] Add new/options windows to quotes 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
set (CMAKE_CXX_STANDARD 17)

project( service_renderer VERSION 1.0
	DESCRIPTION "GTK application for showing draw buffer."
	LANGUAGES CXX )

find_package(PkgConfig REQUIRED)
pkg_check_modules(GTKMM REQUIRED gtkmm-3.0)

add_executable( ${PROJECT_NAME}
    ${CMAKE_CURRENT_SOURCE_DIR}/src/gui_renderer.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/src/RArea.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/src/RWindow.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/src/RArea.hpp
    ${CMAKE_CURRENT_SOURCE_DIR}/src/RWindow.hpp )

install(TARGETS ${PROJECT_NAME} DESTINATION "./")

target_link_libraries( ${PROJECT_NAME}  ${GTKMM_LIBRARIES}  )
target_include_directories(${PROJECT_NAME} PUBLIC ${GTKMM_LIBRARY_DIRS} )
target_include_directories( ${PROJECT_NAME}  PUBLIC ${GTKMM_INCLUDE_DIRS}  )
target_link_libraries( ${PROJECT_NAME} ${LIBRT} rt pthread )

#key_code
target_include_directories( ${PROJECT_NAME}  PUBLIC "${CMAKE_SOURCE_DIR}/"  )
target_compile_options(${PROJECT_NAME} PUBLIC "-Wno-deprecated-declarations")
target_compile_options(${PROJECT_NAME} PUBLIC "-Wno-unused-result")
target_compile_options(${PROJECT_NAME} PUBLIC "-Wno-parentheses")
target_compile_options(${PROJECT_NAME} PUBLIC "-Wno-cast-function-type")

# disable sanitizier for target, due to bug in sigc
# https://github.com/libsigcplusplus/libsigcplusplus/issues/10
get_target_property(_target_cxx_flags ${PROJECT_NAME} COMPILE_OPTIONS)
if(_target_cxx_flags)
	list(REMOVE_ITEM _target_cxx_flags -fsanitize=address)
	set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_OPTIONS "${_target_cxx_flags}")
endif()
get_target_property(_target_link_flags ${PROJECT_NAME} LINK_OPTIONS)
if(_target_link_flags)
	list(REMOVE_ITEM _target_link_flags -fsanitize=address)
	set_target_properties(${PROJECT_NAME} PROPERTIES LINK_OPTIONS "${_target_link_flags}")
endif()