comparison 3rdparty/vmime/examples/viewer/CMakeLists.txt @ 0:a4671277546c tip

created the repository for the thymian project
author ferencd
date Tue, 17 Aug 2021 11:19:54 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:a4671277546c
1
2 IF(VMIME_BUILD_SAMPLES)
3
4 FIND_PACKAGE(PkgConfig REQUIRED)
5 PKG_CHECK_MODULES(GTK3 REQUIRED gtk+-3.0)
6
7 INCLUDE_DIRECTORIES(${GTK3_INCLUDE_DIRS})
8 LINK_DIRECTORIES(${GTK3_LIBRARY_DIRS})
9 ADD_DEFINITIONS(${GTK3_CFLAGS_OTHER})
10
11 ADD_EXECUTABLE(
12 viewer
13 viewer.cpp
14 )
15
16 TARGET_LINK_LIBRARIES(
17 viewer
18 ${VMIME_LIBRARY_NAME}
19 ${GTK3_LIBRARIES}
20 )
21
22 ADD_DEPENDENCIES(
23 viewer
24 ${VMIME_LIBRARY_NAME}
25 )
26
27 ELSE()
28
29 MESSAGE(FATAL_ERROR "Examples are not to be built (set VMIME_BUILD_SAMPLES to YES.")
30
31 ENDIF()