-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
45 lines (33 loc) · 1006 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
#Change PROJECT_NAME to the name of your project
PROJECT(DynamicFMIndex-library CXX)
MESSAGE("PROJECT_NAME: " ${PROJECT_NAME})
#SET(CMAKE_BUILD_TYPE Release)
#IF (${CMAKE_BUILD_TYPE} STREQUAL "")
# SET(CMAKE_BUILD_TYPE Release)
#ENDIF(${CMAKE_BUILD_TYPE} STREQUAL "")
SET(SAMPLE
1024 CACHE STRING DOCSTRING)
SET(BUFFER
1048576 CACHE STRING DOCSTRING)
SET(LOGN
64 CACHE STRING DOCSTRING)
#SET(NDEBUG
# ON CACHE BOOL DOCSTRING)
ADD_DEFINITIONS(-DSAMPLE=${SAMPLE} -DBUFFER=${BUFFER} -DLOGN=${LOGN})
MESSAGE(STATUS
"SAMPLE: " ${SAMPLE})
MESSAGE(STATUS
"BUFFER: " ${BUFFER})
MESSAGE(STATUS
"LOGN: " ${LOGN})
MESSAGE(STATUS
"NDEBUG: " ${NDEBUG})
SET(SOURCES "")
#ADD_SUBDIRECTORY(src)
#INCLUDE_DIRECTORIES(src)
AUX_SOURCE_DIRECTORY(src SOURCES)
#SET(SOURCES_READ ${SOURCESX})
#SEPARATE_ARGUMENTS(SOURCES_READ)
MESSAGE("SOURCES: " ${SOURCES})
ADD_LIBRARY(dynfmi STATIC ${SOURCES})
#ADD_LIBRARY(dynfmi STATIC bvtree.cpp src/dynFMI.cpp src/handle.cpp src/pos.cpp src/rbtree.cpp src/ssatree.cpp)