diff options
author | Timofey <t.danshin@corp.mail.ru> | 2016-09-28 15:58:06 +0300 |
---|---|---|
committer | Timofey <t.danshin@corp.mail.ru> | 2016-09-29 14:26:57 +0300 |
commit | fd450f9ef59329916d96d397e7927322928ec77b (patch) | |
tree | fa6ffeb10671b19ce35d2bc013b4c356372f9dd4 /3party | |
parent | fef30938beb8ad68f27981b30013cdfbb1a765d1 (diff) |
Opening hours lib and tests
Diffstat (limited to '3party')
-rw-r--r-- | 3party/opening_hours/CMakeLists.txt | 29 | ||||
-rw-r--r-- | 3party/opening_hours/opening_hours_tests/CMakeLists.txt | 12 |
2 files changed, 41 insertions, 0 deletions
diff --git a/3party/opening_hours/CMakeLists.txt b/3party/opening_hours/CMakeLists.txt new file mode 100644 index 0000000000..eac362071c --- /dev/null +++ b/3party/opening_hours/CMakeLists.txt @@ -0,0 +1,29 @@ +cmake_minimum_required(VERSION 3.2) + +project(opening_hours C CXX) + +include_directories(src ../../) + +add_compile_options( + "-Wall" + "-Wno-unused-function" + "-std=c++11" +) + + +set( + SRC + opening_hours.hpp + opening_hours.cpp + opening_hours_parsers.hpp + opening_hours_parsers_terminals.hpp + parse_opening_hours.hpp + parse_opening_hours.cpp + rules_evaluation_private.hpp + rules_evaluation.hpp + rules_evaluation.cpp +) + +add_library(opening_hours ${SRC}) + +omim_add_test_subdirectory(opening_hours_tests) diff --git a/3party/opening_hours/opening_hours_tests/CMakeLists.txt b/3party/opening_hours/opening_hours_tests/CMakeLists.txt new file mode 100644 index 0000000000..3542e055c2 --- /dev/null +++ b/3party/opening_hours/opening_hours_tests/CMakeLists.txt @@ -0,0 +1,12 @@ +set(OPENING_HOURS_INCLUDE ../opening_hours) + +include_directories(${PROJECT_SOURCE_DIR}) + + +set( + SRC + opening_hours_tests.cpp +) + +add_executable(opening_hours_tests ${SRC}) +omim_link_libraries(opening_hours_tests base opening_hours) |