-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
48 lines (41 loc) · 1007 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
44
45
46
47
48
cmake_minimum_required(VERSION 3.7.1)
project(Textgen)
set(CMAKE_MFC_FLAG 0)
file(
GLOB SOURCE_FILES
textgen/*
)
list(
REMOVE_ITEM SOURCE_FILES
"${CMAKE_CURRENT_SOURCE_DIR}/textgen/MySQLDictionary.h"
"${CMAKE_CURRENT_SOURCE_DIR}/textgen/MySQLDictionary.cpp"
)
add_library(
${PROJECT_NAME} STATIC
${SOURCE_FILES}
)
target_link_libraries(
${PROJECT_NAME}
MacGyver
Newbase
Calculator
)
target_include_directories(
${PROJECT_NAME}
PUBLIC ${PROJECT_SOURCE_DIR}/textgen
PUBLIC ${PROJECT_SOURCE_DIR}
PUBLIC ${MacGyver_INCLUDE_DIRS}
PUBLIC ${Newbase_INCLUDE_DIRS}
PUBLIC ${Calculator_INCLUDE_DIRS}
PUBLIC ${BOOST_INCLUDE_DIR}
)
set(
${PROJECT_NAME}_INCLUDE_DIRS
${PROJECT_SOURCE_DIR}/textgen
${PROJECT_SOURCE_DIR}
${MacGyver_INCLUDE_DIRS}
${Newbase_INCLUDE_DIRS}
${Calculator_INCLUDE_DIRS}
${BOOST_INCLUDE_DIR}
CACHE INTERNAL "${PROJECT_NAME}: Include Directories" FORCE
)