diff options
author | Timofey <t.danshin@corp.mail.ru> | 2016-10-05 19:05:27 +0300 |
---|---|---|
committer | Timofey <t.danshin@corp.mail.ru> | 2016-10-07 13:34:33 +0300 |
commit | 7bd0be04128784fecc14036c7dcebea88d44389b (patch) | |
tree | 7882b37ca0f1cacaf0cd7f4ac042d7e8dc41b6c9 /editor | |
parent | 7ca99fa0568169abf0390f6717fa534549454c7f (diff) |
Added editor tests
Diffstat (limited to 'editor')
-rw-r--r-- | editor/CMakeLists.txt | 5 | ||||
-rw-r--r-- | editor/editor_tests/CMakeLists.txt | 42 | ||||
-rw-r--r-- | editor/osm_auth_tests/CMakeLists.txt | 35 |
3 files changed, 80 insertions, 2 deletions
diff --git a/editor/CMakeLists.txt b/editor/CMakeLists.txt index 6a1e440c3b..005477e6b8 100644 --- a/editor/CMakeLists.txt +++ b/editor/CMakeLists.txt @@ -27,6 +27,7 @@ set( yes_no_unknown.hpp ) -omim_add_library(editor ${SRC}) +add_library(editor ${SRC}) -#add_subdirectory(editor_tests) +omim_add_test_subdirectory(editor_tests) +omim_add_test_subdirectory(osm_auth_tests) diff --git a/editor/editor_tests/CMakeLists.txt b/editor/editor_tests/CMakeLists.txt new file mode 100644 index 0000000000..ba1515754c --- /dev/null +++ b/editor/editor_tests/CMakeLists.txt @@ -0,0 +1,42 @@ +set( + SRC + config_loader_test.cpp + editor_config_test.cpp + editor_notes_test.cpp + opening_hours_ui_test.cpp + osm_feature_matcher_test.cpp + ui2oh_test.cpp + user_stats_test.cpp + xml_feature_test.cpp +) + +omim_add_test(editor_tests ${SRC}) + +omim_link_libraries( + editor_tests + editor + platform_tests_support + platform + geometry + coding + base + stats_client + opening_hours + pugixml + oauthcpp + tomcrypt +) + +target_link_libraries( + editor_tests + ${Qt5Widgets_LIBRARIES} +) + +if (${PLATFORM_MAC}) + target_link_libraries( + editor_tests + "-framework Cocoa" + "-framework IOKit" + "-framework SystemConfiguration" + ) +endif() diff --git a/editor/osm_auth_tests/CMakeLists.txt b/editor/osm_auth_tests/CMakeLists.txt new file mode 100644 index 0000000000..3f2dc67a37 --- /dev/null +++ b/editor/osm_auth_tests/CMakeLists.txt @@ -0,0 +1,35 @@ +set( + SRC + osm_auth_tests.cpp + server_api_test.cpp +) + +omim_add_test(osm_auth_tests ${SRC}) + +omim_link_libraries( + osm_auth_tests + editor + platform + platform_tests_support + geometry + coding + base + pugixml + oauthcpp + tomcrypt +) + +target_link_libraries( + osm_auth_tests + ${Qt5Widgets_LIBRARIES} +) + +if (${PLATFORM_MAC}) + target_link_libraries( + osm_auth_tests + ${Qt5Widgets_LIBRARIES} + "-framework Cocoa" + "-framework IOKit" + "-framework SystemConfiguration" + ) +endif() |