aboutsummaryrefslogtreecommitdiff
path: root/tools/testapp/CMakeLists.txt
blob: b848e50b61c2ff2bd6c29c2d62195ce469b1d928 (plain)
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
find_package(PkgConfig REQUIRED)

pkg_check_modules(DBUSMENUGLIB REQUIRED dbusmenu-glib)
pkg_check_modules(GLIB REQUIRED glib-2.0)
pkg_check_modules(JSONGLIB REQUIRED json-glib-1.0)

set(glibapp_SRCS
    main.c
    )

include_directories(
    ${DBUSMENUGLIB_INCLUDE_DIRS}
    ${GLIB_INCLUDE_DIRS}
    ${JSONGLIB_INCLUDE_DIRS}
    )

link_directories(
    ${DBUSMENUGLIB_LIBRARY_DIRS}
    ${GLIB_LIBRARY_DIRS}
    ${JSONGLIB_LIBRARY_DIRS}
    )

add_executable(dbusmenubench-glibapp ${glibapp_SRCS})

target_link_libraries(dbusmenubench-glibapp
    ${DBUSMENUGLIB_LIBRARIES}
    ${GLIB_LIBARIES}
    ${JSONGLIB_LIBRARIES}
    )