Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/3party
diff options
context:
space:
mode:
authorTimofey <t.danshin@corp.mail.ru>2016-09-28 15:58:06 +0300
committerTimofey <t.danshin@corp.mail.ru>2016-09-29 14:26:57 +0300
commitfd450f9ef59329916d96d397e7927322928ec77b (patch)
treefa6ffeb10671b19ce35d2bc013b4c356372f9dd4 /3party
parentfef30938beb8ad68f27981b30013cdfbb1a765d1 (diff)
Opening hours lib and tests
Diffstat (limited to '3party')
-rw-r--r--3party/opening_hours/CMakeLists.txt29
-rw-r--r--3party/opening_hours/opening_hours_tests/CMakeLists.txt12
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)