1
include_directories (${CMAKE_CURRENT_SOURCE_DIR}
2
${CMAKE_CURRENT_SOURCE_DIR}/../src
3
${CMAKE_CURRENT_SOURCE_DIR}/../../libcompizconfig/tests)
5
pkg_check_modules (COMPIZCONFIG_TEST_GSETTINGS libcompizconfig)
7
add_executable (compizconfig_test_gsettings
8
${CMAKE_CURRENT_SOURCE_DIR}/gsettings_mocks.cpp
9
${CMAKE_CURRENT_SOURCE_DIR}/test_gsettings_tests.cpp
10
${CMAKE_CURRENT_SOURCE_DIR}/test_gsettings.cpp
11
${CMAKE_CURRENT_SOURCE_DIR}/gsettings_mocks.h
12
${CMAKE_CURRENT_SOURCE_DIR}/test_gsettings_tests.h)
14
link_directories (${CMAKE_CURRENT_BINARY_DIR}/../../libcompizconfig/tests)
16
target_link_libraries (compizconfig_test_gsettings
17
gsettings_backend_shared
19
${COMPIZCONFIG_TEST_GSETTINGS_LIBRARIES}
20
${GTEST_BOTH_LIBRARIES}
21
${GMOCK_MAIN_LIBRARY})
23
compiz_discover_tests (compizconfig_test_gsettings)