-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
47 lines (39 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
cmake_minimum_required (VERSION 3.8)
project(BloomFilter CXX)
find_package(Doxygen)
if(DOXYGEN_FOUND)
add_custom_target(doxygen ALL
${DOXYGEN_EXECUTABLE}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMENT "Generating API documentation with Doxygen" VERBATIM
SOURCES Doxyfile
)
endif(DOXYGEN_FOUND)
add_definitions(
-DNOMINMAX
-DWIN32_LEAN_AND_MEAN
-DVC_EXTRALEAN
-D_CRT_SECURE_NO_WARNINGS
-D_SECURE_SCL=0
-D_SCL_SECURE_NO_WARNINGS
)
option(BUILD_SHARED_LIBS "Build libraries as DLLs" FALSE)
#set(BloomFilter_VERSION_MAJOR 0)
#set(BloomFilter_VERSION_MINOR 1)
#configure_file("${PROJECT_SOURCE_DIR}/Version.h.in" "${PROJECT_BINARY_DIR}/Version.h")
set(PUBLIC_INCLUDE_PATHS
include
)
set(PRIVATE_INCLUDE_PATHS
src
)
set(SOURCES
include/BloomFilter/BloomFilter.h
src/BloomFilter.cpp
src/lookup3.c
src/lookup3.h
)
add_library(BloomFilter ${SOURCES})
#target_compile_definitions(BloomFilter PRIVATE ${DEFINES})
target_include_directories(BloomFilter PRIVATE ${PRIVATE_INCLUDE_PATHS} PUBLIC ${PUBLIC_INCLUDE_PATHS})
source_group(Sources FILES ${SOURCES})