-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
49 lines (35 loc) · 1.13 KB
/
Copy pathCMakeLists.txt
File metadata and controls
49 lines (35 loc) · 1.13 KB
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
cmake_minimum_required(VERSION 2.8)
set(PROJECT_NAME textmining)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_COMPILER "g++")
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Werror -std=c++17 -pedantic -g")
FIND_PACKAGE( Boost 1.40 COMPONENTS program_options system REQUIRED )
INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIR} )
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CompilerSRC
src/TextMiningCompiler/main.cc
src/reader.cc
src/ptrie.cc
)
set(AppSRC
src/TextMiningApp/main.cc
src/damerauLevenshtein.cc
src/reader.cc
src/ptrie.cc
)
set(testSRC
test/test.cc
src/damerauLevenshtein.cc
src/ptrie.cc
)
link_directories(${CMAKE_SOURCE_DIR}/src)
add_executable (TextMiningCompiler ${CompilerSRC})
add_executable (TextMiningApp ${AppSRC})
add_executable (UnitTest ${testSRC})
target_link_libraries(UnitTest dl)
TARGET_LINK_LIBRARIES( UnitTest LINK_PUBLIC ${Boost_LIBRARIES} )
target_link_libraries(TextMiningApp dl)
TARGET_LINK_LIBRARIES( TextMiningApp LINK_PUBLIC ${Boost_LIBRARIES} )
target_link_libraries(TextMiningCompiler dl)
TARGET_LINK_LIBRARIES( TextMiningCompiler LINK_PUBLIC ${Boost_LIBRARIES} )