File tree Expand file tree Collapse file tree 1 file changed +61
-0
lines changed Expand file tree Collapse file tree 1 file changed +61
-0
lines changed Original file line number Diff line number Diff line change
1
+ cmake_minimum_required (VERSION 3.6.0 )
2
+
3
+ project (geocoder-nlp
4
+ VERSION 1.0.0
5
+ DESCRIPTION "Geocoder NLP" )
6
+
7
+ set (CMAKE_INCLUDE_CURRENT_DIR ON )
8
+ set (CMAKE_CXX_STANDARD 11 )
9
+ set (CMAKE_CXX_STANDARD_REQUIRED True )
10
+
11
+ include (FindPkgConfig )
12
+ include (FeatureSummary )
13
+ include (GNUInstallDirs )
14
+
15
+ find_package (PkgConfig REQUIRED )
16
+
17
+ pkg_check_modules (MARISA marisa IMPORTED_TARGET )
18
+ pkg_check_modules (KYOTOCABINET kyotocabinet IMPORTED_TARGET )
19
+ pkg_check_modules (POSTAL postal IMPORTED_TARGET )
20
+ pkg_check_modules (SQLITE3 sqlite3 IMPORTED_TARGET )
21
+
22
+ set (SRC
23
+ src/geocoder.cpp
24
+ src/postal.cpp )
25
+
26
+ set (HEAD
27
+ src/geocoder.h
28
+ src/postal.h )
29
+
30
+ # sqlite3pp include
31
+ include_directories (thirdparty/sqlite3pp/headeronly_src )
32
+ include_directories (src )
33
+
34
+ # demo codes
35
+ add_executable (geocoder-nlp
36
+ demo/geocoder-nlp.cpp
37
+ ${SRC}
38
+ ${HEAD} )
39
+
40
+ target_link_libraries (geocoder-nlp
41
+ -lmarisa -lkyotocabinet -lpostal -lsqlite3 )
42
+
43
+ add_executable (nearby-line
44
+ demo/nearby-line.cpp
45
+ ${SRC}
46
+ ${HEAD} )
47
+
48
+ target_link_libraries (nearby-line
49
+ -lmarisa -lkyotocabinet -lpostal -lsqlite3 )
50
+
51
+ add_executable (nearby-point
52
+ demo/nearby-point.cpp
53
+ ${SRC}
54
+ ${HEAD} )
55
+
56
+ target_link_libraries (nearby-point
57
+ -lmarisa -lkyotocabinet -lpostal -lsqlite3 )
58
+
59
+
60
+ feature_summary (WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES )
61
+
You can’t perform that action at this time.
0 commit comments