forked from bertrandmartel/btsnoop-decoder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
53 lines (42 loc) · 782 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
53 lines (42 loc) · 782 Bytes
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
cmake_minimum_required (VERSION 2.6)
project(btsnoop-decoder)
if(UNIX)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32 -Wall -std=c++11")
endif()
set(LIBRARY_OUTPUT_PATH lib/${CMAKE_BUILD_TYPE})
set(EXECUTABLE_OUTPUT_PATH bin/${CMAKE_BUILD_TYPE})
include_directories(
include
test/include
)
file(
GLOB_RECURSE
source_files
src/*
include/*
)
add_library(
btsnoop_static
STATIC
${source_files}
)
add_library(
btsnoop
SHARED
${source_files}
)
file(
GLOB_RECURSE
source_test_files
test/src/*
test/include/*
)
add_executable(
btsnoop-test
${source_test_files}
)
target_link_libraries(
btsnoop-test
btsnoop
pthread
)