-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
54 lines (48 loc) · 1.29 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
48
49
50
51
52
53
54
include_directories(
# "${ANDROID_LIBNATIVEHELPER_DIR}/include/nativehelper"
"${EXTERNAL_SAFE_IOP_DIR}/include"
)
add_definitions("-DLIBUTILS_NATIVE=1")
add_library(utils SHARED
"FileMap.cpp"
"JenkinsHash.cpp"
# "NativeHandle.cpp"
"Printer.cpp"
"PropertyMap.cpp"
"RefBase.cpp"
"SharedBuffer.cpp"
"StopWatch.cpp"
"String8.cpp"
"String16.cpp"
"StrongPointer.cpp"
"SystemClock.cpp"
"Threads.cpp"
"Timers.cpp"
"Tokenizer.cpp"
"Unicode.cpp"
"VectorImpl.cpp"
"misc.cpp"
"Looper.cpp"
"CallStack.cpp"
"ProcessCallStack.cpp"
)
target_link_libraries(utils cutils dl)
include_directories(
"${EXTERNAL_GOOGLETEST_DIR}/googletest/include"
"${EXTERNAL_GOOGLETEST_DIR}/googlemock/include"
)
add_executable(libutils_tests
"BitSet_test.cpp"
"FileMap_test.cpp"
"LruCache_test.cpp"
"Mutex_test.cpp"
"SharedBuffer_test.cpp"
"String8_test.cpp"
"StrongPointer_test.cpp"
"Unicode_test.cpp"
"Vector_test.cpp"
"Looper_test.cpp"
"RefBase_test.cpp"
)
target_link_libraries(libutils_tests gtest_main gtest z base utils)
gtest_discover_tests(libutils_tests)