diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-12-13 09:48:35 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-12-13 09:48:35 -0600 |
commit | 5b5546a50c9a323942ca5abae81563ae2c709042 (patch) | |
tree | dd5f954914ac65435dbd829cb871633f5e98de5f | |
parent | 358b551cd1ab977c0c2931eacf0d5ebf1f7f7fef (diff) | |
download | ayatana-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
-rw-r--r-- | tests/CMakeLists.txt | 9 |
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) |