forked from allan-simon/tatoebacpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
106 lines (87 loc) · 1.64 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
cmake_minimum_required(VERSION 2.6)
project(tatoebacpp)
include_directories(
src
)
#TODO #10 replace by a lighter graphic library
#include(FindPkgConfig)
#FIND_PACKAGE( OpenCV REQUIRED )
file(
GLOB
controllers_files
src/controllers/*
src/controllers/apis/*
src/controllers/webs/*
src/controllers/generics/*
)
file(
GLOB
models_files
src/models/*
)
file(
GLOB
results_files
src/results/*
)
file(
GLOB
contents_files
src/contents/*
)
file(
GLOB
generics_files
src/generics/*
)
add_executable(
tatoeba
src/tatoeba.cpp
src/main.cpp
${controllers_files}
${models_files}
${generics_files}
${results_files}
${contents_files}
view_web.cpp
)
target_link_libraries(
tatoeba
tato
cppcms
cppdb
booster
sqlite3
#tokyodystopia
sphinxclient
# TODO have lighter dependencies for
# resizing images
#opencv_core
#opencv_highgui
)
#add_executable(
# indexer
# src/indexer.cpp
# src/contents/Config.cpp
# src/generics/Languages.cpp
# src/models/TatoDB.cpp
#)
#target_link_libraries(
# indexer
# tato
# cppcms
# cppdb
# tokyodystopia
#)
#
add_custom_command(
OUTPUT view_web.cpp
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/tools/cppcms_tmpl_cc
${CMAKE_CURRENT_SOURCE_DIR}/src/views/api/commons/*/*.tmpl
${CMAKE_CURRENT_SOURCE_DIR}/src/views/web/*/*.tmpl
${CMAKE_CURRENT_SOURCE_DIR}/src/views/api/*/*.tmpl
-o view_web.cpp
DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/src/views/web/*/*.tmpl
${CMAKE_CURRENT_SOURCE_DIR}/src/views/api/*/*.tmpl
)