diff options
Diffstat (limited to 'drape/drape_tests/CMakeLists.txt')
-rw-r--r-- | drape/drape_tests/CMakeLists.txt | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/drape/drape_tests/CMakeLists.txt b/drape/drape_tests/CMakeLists.txt new file mode 100644 index 0000000000..d4cdf981da --- /dev/null +++ b/drape/drape_tests/CMakeLists.txt @@ -0,0 +1,77 @@ +project(drape_tests) + +execute_process( + COMMAND python ${OMIM_ROOT}/tools/autobuild/shader_preprocessor.py + ${DRAPE_ROOT}/shaders + shader_index.txt + shader_def +) + +add_definitions( + -DOGL_TEST_ENABLED + -DGTEST_DONT_DEFINE_TEST + -DCOMPILER_TESTS +) + +include_directories( + ${OMIM_ROOT}/3party/gmock/include + ${OMIM_ROOT}/3party/gmock/gtest/include + ${OMIM_ROOT}/3party/freetype/include +) + +set( + SRC + attribute_provides_tests.cpp + batcher_tests.cpp + bingind_info_tests.cpp + buffer_tests.cpp + compile_shaders_test.cpp + dummy_texture.hpp + failure_reporter.cpp + font_texture_tests.cpp + fribidi_tests.cpp + glfunctions.cpp + glmock_functions.cpp + glmock_functions.hpp + glyph_mng_tests.cpp + glyph_packer_test.cpp + img.cpp + img.hpp + memory_comparer.hpp + pointers_tests.cpp + stipple_pen_tests.cpp + texture_of_colors_tests.cpp + uniform_value_tests.cpp +) + +omim_add_test(${PROJECT_NAME} ${DRAPE_COMMON_SRC} ${SRC}) + +omim_link_libraries( + ${PROJECT_NAME} + qt_tstfrm + indexer + platform + coding + geometry + base + fribidi + expat + tomcrypt + stats_client + freetype + gmock + ${Qt5Core_LIBRARIES} + ${Qt5Gui_LIBRARIES} + ${Qt5Widgets_LIBRARIES} + ${LIBZ} +) + +if (PLATFORM_MAC) + omim_link_libraries( + ${PROJECT_NAME} + "-framework IOKit" + "-framework Cocoa" + "-framework CoreLocation" + "-framework SystemConfiguration" + ) +endif() |