forked from exclipy/clang_indexer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
43 lines (35 loc) · 925 Bytes
/
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
cmake_minimum_required(VERSION 2.6)
project (clic_project)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
find_package(Boost COMPONENTS iostreams REQUIRED)
find_package(ZLIB REQUIRED)
find_package(LibClang REQUIRED)
find_package(BerkeleyDB REQUIRED)
include_directories(
SYSTEM
${Boost_INCLUDE_DIRS}
${ZLIB_INCLUDE_DIRS}
${LibClang_INCLUDE_DIRS}
${DB_INCLUDE_DIRS}
)
add_library(common STATIC clic_parser.cpp clic_printer.cpp ClicDb.cpp)
add_executable(clic_clear clic_clear.cpp)
target_link_libraries(clic_clear
common
${DB_LIBRARIES}
)
add_executable(clic_add clic_add.cpp)
target_link_libraries(clic_add
common
${Boost_LIBRARIES}
${ZLIB_LIBRARIES}
${DB_LIBRARIES}
${LibClang_LIBRARIES}
)
add_executable(clic_rm clic_rm.cpp)
target_link_libraries(clic_rm
common
${Boost_LIBRARIES}
${ZLIB_LIBRARIES}
${DB_LIBRARIES}
)