aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-12-13 09:48:35 -0600
committerCharles Kerr <charles.kerr@canonical.com>2013-12-13 09:48:35 -0600
commit5b5546a50c9a323942ca5abae81563ae2c709042 (patch)
treedd5f954914ac65435dbd829cb871633f5e98de5f /tests
parent358b551cd1ab977c0c2931eacf0d5ebf1f7f7fef (diff)
downloadayatana-indicator-datetime-5b5546a50c9a323942ca5abae81563ae2c709042.tar.gz
ayatana-indicator-datetime-5b5546a50c9a323942ca5abae81563ae2c709042.tar.bz2
ayatana-indicator-datetime-5b5546a50c9a323942ca5abae81563ae2c709042.zip
in tests/, add rules to make the Google Test library
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 682896b..e6b3e2d 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,3 +1,12 @@
+# build libgtest
+add_library (gtest STATIC
+ ${GTEST_SOURCE_DIR}/gtest-all.cc
+ ${GTEST_SOURCE_DIR}/gtest_main.cc)
+set_target_properties (gtest PROPERTIES INCLUDE_DIRECTORIES ${INCLUDE_DIRECTORIES} ${GTEST_INCLUDE_DIR})
+set_target_properties (gtest PROPERTIES COMPILE_FLAGS ${COMPILE_FLAGS} -w)
+
+SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -g ${CC_WARNING_ARGS}")
+
# build the necessary schemas
set_directory_properties (PROPERTIES
ADDITIONAL_MAKE_CLEAN_FILES gschemas.compiled)