-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
62 lines (47 loc) · 1.12 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
cmake_minimum_required(VERSION 3.0.2)
project(TopMine)
include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR})
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost COMPONENTS
filesystem
thread
system
program_options
REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})
set(CMAKE_CXX_COMPILER "g++")
include_directories(./include)
include_directories(.)
set(SOURCE_LIB
src/batch.cc
src/collection_processor.cc
src/collocations_processor.cc
src/heap.cc
src/scoring_processor.cc
src/spinlock.cc
src/thread_safe_collocation_start_indices.cc
src/thread_safe_counters.cc
src/thread_safe_dictionary.cc
src/token_counters_processor.cc
src/topmine_impl.cc
src/utils.cc
)
set(CMAKE_CXX_STANDARD 11)
set(CXX_STANDARD_REQUIRED)
add_library(topmine_lib STATIC ${SOURCE_LIB})
add_executable(topmine src/topmine.cc)
target_link_libraries(
topmine
topmine_lib
${Boost_LIBRARIES}
)
add_executable(topmine_tests tests/topmine_tests.cc)
target_link_libraries(
topmine_tests
topmine_lib
gtest
gtest_main
${Boost_LIBRARIES}
)