@@ -764,72 +764,73 @@ if (BUILD_TESTING)
764
764
endif (APPLE )
765
765
endif (WITH_CUSTOM_PREFIX)
766
766
767
- add_executable (stl_logging_unittest
768
- src/stl_logging_unittest.cc
769
- )
770
-
771
- target_link_libraries (stl_logging_unittest PRIVATE ${_GLOG_TEST_LIBS} )
772
-
773
- if (HAVE_NO_DEPRECATED)
774
- set_property (TARGET stl_logging_unittest APPEND PROPERTY COMPILE_OPTIONS
775
- -Wno-deprecated)
776
- endif (HAVE_NO_DEPRECATED)
777
-
778
- if (HAVE_UNORDERED_MAP AND HAVE_UNORDERED_SET)
779
- target_compile_definitions (stl_logging_unittest PRIVATE
780
- GLOG_STL_LOGGING_FOR_UNORDERED)
781
- endif (HAVE_UNORDERED_MAP AND HAVE_UNORDERED_SET)
782
-
783
- if (HAVE_TR1_UNORDERED_MAP AND HAVE_TR1_UNORDERED_SET)
784
- target_compile_definitions (stl_logging_unittest PRIVATE
785
- GLOG_STL_LOGGING_FOR_TR1_UNORDERED)
786
- endif (HAVE_TR1_UNORDERED_MAP AND HAVE_TR1_UNORDERED_SET)
787
-
788
- if (HAVE_EXT_HASH_MAP AND HAVE_EXT_HASH_SET)
789
- target_compile_definitions (stl_logging_unittest PRIVATE
790
- GLOG_STL_LOGGING_FOR_EXT_HASH)
791
- endif (HAVE_EXT_HASH_MAP AND HAVE_EXT_HASH_SET)
792
-
793
- if (HAVE_EXT_SLIST)
794
- target_compile_definitions (stl_logging_unittest PRIVATE
795
- GLOG_STL_LOGGING_FOR_EXT_SLIST)
796
- endif (HAVE_EXT_SLIST)
797
-
798
- if (HAVE_SYMBOLIZE)
799
- add_executable (symbolize_unittest
800
- src/symbolize_unittest.cc
801
- )
802
-
803
- target_link_libraries (symbolize_unittest PRIVATE ${_GLOG_TEST_LIBS} )
804
- endif (HAVE_SYMBOLIZE)
805
-
806
- add_executable (demangle_unittest
807
- src/demangle_unittest.cc
808
- )
809
-
810
- target_link_libraries (demangle_unittest PRIVATE ${_GLOG_TEST_LIBS} )
811
-
812
- if (HAVE_STACKTRACE)
813
- add_executable (stacktrace_unittest
814
- src/stacktrace_unittest.cc
815
- )
816
-
817
- target_link_libraries (stacktrace_unittest PRIVATE ${_GLOG_TEST_LIBS} )
818
- endif (HAVE_STACKTRACE)
819
-
820
- add_executable (utilities_unittest
821
- src/utilities_unittest.cc
822
- )
823
-
824
- target_link_libraries (utilities_unittest PRIVATE ${_GLOG_TEST_LIBS} )
825
-
826
- if (HAVE_STACKTRACE AND HAVE_SYMBOLIZE)
827
- add_executable (signalhandler_unittest
828
- src/signalhandler_unittest.cc
829
- )
830
-
831
- target_link_libraries (signalhandler_unittest PRIVATE ${_GLOG_TEST_LIBS} )
832
- endif (HAVE_STACKTRACE AND HAVE_SYMBOLIZE)
767
+ #
768
+ # add_executable (stl_logging_unittest
769
+ # src/stl_logging_unittest.cc
770
+ # )
771
+ #
772
+ # target_link_libraries (stl_logging_unittest PRIVATE ${_GLOG_TEST_LIBS})
773
+ #
774
+ # if (HAVE_NO_DEPRECATED)
775
+ # set_property (TARGET stl_logging_unittest APPEND PROPERTY COMPILE_OPTIONS
776
+ # -Wno-deprecated)
777
+ # endif (HAVE_NO_DEPRECATED)
778
+ #
779
+ # if (HAVE_UNORDERED_MAP AND HAVE_UNORDERED_SET)
780
+ # target_compile_definitions (stl_logging_unittest PRIVATE
781
+ # GLOG_STL_LOGGING_FOR_UNORDERED)
782
+ # endif (HAVE_UNORDERED_MAP AND HAVE_UNORDERED_SET)
783
+ #
784
+ # if (HAVE_TR1_UNORDERED_MAP AND HAVE_TR1_UNORDERED_SET)
785
+ # target_compile_definitions (stl_logging_unittest PRIVATE
786
+ # GLOG_STL_LOGGING_FOR_TR1_UNORDERED)
787
+ # endif (HAVE_TR1_UNORDERED_MAP AND HAVE_TR1_UNORDERED_SET)
788
+ #
789
+ # if (HAVE_EXT_HASH_MAP AND HAVE_EXT_HASH_SET)
790
+ # target_compile_definitions (stl_logging_unittest PRIVATE
791
+ # GLOG_STL_LOGGING_FOR_EXT_HASH)
792
+ # endif (HAVE_EXT_HASH_MAP AND HAVE_EXT_HASH_SET)
793
+ #
794
+ # if (HAVE_EXT_SLIST)
795
+ # target_compile_definitions (stl_logging_unittest PRIVATE
796
+ # GLOG_STL_LOGGING_FOR_EXT_SLIST)
797
+ # endif (HAVE_EXT_SLIST)
798
+ #
799
+ # if (HAVE_SYMBOLIZE)
800
+ # add_executable (symbolize_unittest
801
+ # src/symbolize_unittest.cc
802
+ # )
803
+ #
804
+ # target_link_libraries (symbolize_unittest PRIVATE ${_GLOG_TEST_LIBS})
805
+ # endif (HAVE_SYMBOLIZE)
806
+ #
807
+ # add_executable (demangle_unittest
808
+ # src/demangle_unittest.cc
809
+ # )
810
+ #
811
+ # target_link_libraries (demangle_unittest PRIVATE ${_GLOG_TEST_LIBS})
812
+ #
813
+ # if (HAVE_STACKTRACE)
814
+ # add_executable (stacktrace_unittest
815
+ # src/stacktrace_unittest.cc
816
+ # )
817
+ #
818
+ # target_link_libraries (stacktrace_unittest PRIVATE ${_GLOG_TEST_LIBS})
819
+ # endif (HAVE_STACKTRACE)
820
+ #
821
+ # add_executable (utilities_unittest
822
+ # src/utilities_unittest.cc
823
+ # )
824
+ #
825
+ # target_link_libraries (utilities_unittest PRIVATE ${_GLOG_TEST_LIBS})
826
+ #
827
+ # if (HAVE_STACKTRACE AND HAVE_SYMBOLIZE)
828
+ # add_executable (signalhandler_unittest
829
+ # src/signalhandler_unittest.cc
830
+ # )
831
+ #
832
+ # target_link_libraries (signalhandler_unittest PRIVATE ${_GLOG_TEST_LIBS})
833
+ # endif (HAVE_STACKTRACE AND HAVE_SYMBOLIZE)
833
834
834
835
add_test (NAME demangle COMMAND demangle_unittest)
835
836
add_test (NAME logging COMMAND logging_unittest)
@@ -861,16 +862,16 @@ if (BUILD_TESTING)
861
862
add_test (NAME symbolize COMMAND symbolize_unittest)
862
863
endif (TARGET symbolize_unittest)
863
864
864
- if (HAVE_LIB_GMOCK)
865
- add_executable (mock-log_unittest
866
- src/mock-log_unittest.cc
867
- src/mock-log .h
868
- )
869
-
870
- target_link_libraries (mock-log_unittest PRIVATE ${_GLOG_TEST_LIBS} )
871
-
872
- add_test (NAME mock-log COMMAND mock-log_unittest)
873
- endif (HAVE_LIB_GMOCK)
865
+ # if (HAVE_LIB_GMOCK)
866
+ # add_executable (mock-log_unittest
867
+ # src/mock-log_unittest.cc
868
+ # src/mock-log.h
869
+ # )
870
+ #
871
+ # target_link_libraries (mock-log_unittest PRIVATE ${_GLOG_TEST_LIBS})
872
+ #
873
+ # add_test (NAME mock-log COMMAND mock-log_unittest)
874
+ # endif (HAVE_LIB_GMOCK)
874
875
875
876
# Generate an initial cache
876
877
@@ -926,56 +927,56 @@ if (BUILD_TESTING)
926
927
set_tests_properties (cmake_package_config_build PROPERTIES
927
928
FIXTURES_REQUIRED "cmake_package_config;cmake_package_config_working" )
928
929
929
- add_executable (cleanup_immediately_unittest
930
- src/cleanup_immediately_unittest.cc)
931
-
932
- target_link_libraries (cleanup_immediately_unittest PRIVATE ${_GLOG_TEST_LIBS} )
933
-
934
- add_executable (cleanup_with_absolute_prefix_unittest
935
- src/cleanup_with_absolute_prefix_unittest.cc)
936
-
937
- target_link_libraries (cleanup_with_absolute_prefix_unittest PRIVATE ${_GLOG_TEST_LIBS} )
938
-
939
- add_executable (cleanup_with_relative_prefix_unittest
940
- src/cleanup_with_relative_prefix_unittest.cc)
941
-
942
- target_link_libraries (cleanup_with_relative_prefix_unittest PRIVATE ${_GLOG_TEST_LIBS} )
930
+ # add_executable (cleanup_immediately_unittest
931
+ # src/cleanup_immediately_unittest.cc)
932
+ #
933
+ # target_link_libraries (cleanup_immediately_unittest PRIVATE ${_GLOG_TEST_LIBS})
934
+ #
935
+ # add_executable (cleanup_with_absolute_prefix_unittest
936
+ # src/cleanup_with_absolute_prefix_unittest.cc)
937
+ #
938
+ # target_link_libraries (cleanup_with_absolute_prefix_unittest PRIVATE ${_GLOG_TEST_LIBS})
939
+ #
940
+ # add_executable (cleanup_with_relative_prefix_unittest
941
+ # src/cleanup_with_relative_prefix_unittest.cc)
942
+
943
+ # target_link_libraries (cleanup_with_relative_prefix_unittest PRIVATE ${_GLOG_TEST_LIBS})
943
944
944
945
set (CLEANUP_LOG_DIR ${CMAKE_CURRENT_BINARY_DIR} /cleanup_tests)
945
946
946
947
add_test (NAME cleanup_init COMMAND
947
948
${CMAKE_COMMAND} -E make_directory ${CLEANUP_LOG_DIR} )
948
949
add_test (NAME cleanup_logdir COMMAND
949
950
${CMAKE_COMMAND} -E remove_directory ${CLEANUP_LOG_DIR} )
950
- add_test (NAME cleanup_immediately COMMAND
951
- ${CMAKE_COMMAND}
952
- -DLOGCLEANUP=$<TARGET_FILE:cleanup_immediately_unittest>
953
- # NOTE The trailing slash is important
954
- -DTEST_DIR=${CLEANUP_LOG_DIR} /
955
- -P ${CMAKE_CURRENT_SOURCE_DIR} /cmake/RunCleanerTest1.cmake
956
- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} )
957
- add_test (NAME cleanup_with_absolute_prefix COMMAND
958
- ${CMAKE_COMMAND}
959
- -DLOGCLEANUP=$<TARGET_FILE:cleanup_with_absolute_prefix_unittest>
960
- -DTEST_DIR=${CMAKE_CURRENT_BINARY_DIR} /
961
- -P ${CMAKE_CURRENT_SOURCE_DIR} /cmake/RunCleanerTest2.cmake
962
- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} )
963
- add_test (NAME cleanup_with_relative_prefix COMMAND
964
- ${CMAKE_COMMAND}
965
- -DLOGCLEANUP=$<TARGET_FILE:cleanup_with_relative_prefix_unittest>
966
- -DTEST_DIR=${CMAKE_CURRENT_BINARY_DIR} /
967
- -DTEST_SUBDIR=test_subdir/
968
- -P ${CMAKE_CURRENT_SOURCE_DIR} /cmake/RunCleanerTest3.cmake
969
- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} )
951
+ # add_test (NAME cleanup_immediately COMMAND
952
+ # ${CMAKE_COMMAND}
953
+ # -DLOGCLEANUP=$<TARGET_FILE:cleanup_immediately_unittest>
954
+ # # NOTE The trailing slash is important
955
+ # -DTEST_DIR=${CLEANUP_LOG_DIR}/
956
+ # -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/RunCleanerTest1.cmake
957
+ # WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
958
+ # add_test (NAME cleanup_with_absolute_prefix COMMAND
959
+ # ${CMAKE_COMMAND}
960
+ # -DLOGCLEANUP=$<TARGET_FILE:cleanup_with_absolute_prefix_unittest>
961
+ # -DTEST_DIR=${CMAKE_CURRENT_BINARY_DIR}/
962
+ # -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/RunCleanerTest2.cmake
963
+ # WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
964
+ # add_test (NAME cleanup_with_relative_prefix COMMAND
965
+ # ${CMAKE_COMMAND}
966
+ # -DLOGCLEANUP=$<TARGET_FILE:cleanup_with_relative_prefix_unittest>
967
+ # -DTEST_DIR=${CMAKE_CURRENT_BINARY_DIR}/
968
+ # -DTEST_SUBDIR=test_subdir/
969
+ # -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/RunCleanerTest3.cmake
970
+ # WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
970
971
971
972
# Fixtures setup
972
973
set_tests_properties (cleanup_init PROPERTIES FIXTURES_SETUP logcleanuptest)
973
974
## Fixtures cleanup
974
975
set_tests_properties (cleanup_logdir PROPERTIES FIXTURES_CLEANUP logcleanuptest)
975
976
# Fixture requirements
976
- set_tests_properties (cleanup_immediately PROPERTIES FIXTURES_REQUIRED logcleanuptest)
977
- set_tests_properties (cleanup_with_absolute_prefix PROPERTIES FIXTURES_REQUIRED logcleanuptest)
978
- set_tests_properties (cleanup_with_relative_prefix PROPERTIES FIXTURES_REQUIRED logcleanuptest)
977
+ # set_tests_properties (cleanup_immediately PROPERTIES FIXTURES_REQUIRED logcleanuptest)
978
+ # set_tests_properties (cleanup_with_absolute_prefix PROPERTIES FIXTURES_REQUIRED logcleanuptest)
979
+ # set_tests_properties (cleanup_with_relative_prefix PROPERTIES FIXTURES_REQUIRED logcleanuptest)
979
980
endif (BUILD_TESTING)
980
981
981
982
install (TARGETS glog
0 commit comments