@@ -98,7 +98,7 @@ set(DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH})
9898file (GLOB_RECURSE HEADERS
9999 ./*.h
100100 library.hpp
101- )
101+ )
102102
103103# Include all C/C++ and Unix Assembly files
104104file (GLOB_RECURSE SOURCES_C
@@ -110,11 +110,12 @@ file(GLOB_RECURSE SOURCES_C
110110 server/*
111111 storage/*
112112 string /*
113+ system/*
113114 thread/*
114115 type /*
115116 vendor/*
116117 validator/*
117- )
118+ )
118119
119120# Include all C unit test cases
120121file (GLOB_RECURSE TESTS_C
@@ -126,11 +127,12 @@ file(GLOB_RECURSE TESTS_C
126127 server/*_test.c
127128 storage/*_test.c
128129 string /*_test.c
130+ system/*_test.c
129131 thread/*_test.c
130132 type /*_test.c
131133 vendor/*_test.c
132134 validator/*_test.c
133- )
135+ )
134136
135137# Remove all test files within c files
136138foreach (test_c_file ${TESTS_C} )
@@ -140,12 +142,12 @@ endforeach ()
140142# Only C++ unit test files
141143file (GLOB_RECURSE SOURCES_CPP
142144 java/**/*.cpp
143- )
145+ )
144146
145147# Only C++ unit test files
146148file (GLOB_RECURSE TESTS_CPP
147149 java/**/*Test.cpp
148- )
150+ )
149151
150152# Remove all test files within cpp files
151153foreach (test_cpp_file ${TESTS_CPP} )
@@ -175,7 +177,7 @@ add_custom_target(
175177# Check memory leak
176178add_custom_target (
177179 leak
178- COMMAND valgrind --track-origins=yes --error-exitcode=2 --show-leak-kinds=all -- leak-check=full ./native_test
180+ COMMAND valgrind --track-origins=yes --error-exitcode=2 --leak-check=full ./native_test
179181)
180182
181183# Check memory leak
@@ -186,8 +188,8 @@ add_custom_target(
186188
187189# Check memory leak
188190add_custom_target (
189- leak-c
190- COMMAND valgrind --track-origins=yes --error-exitcode=2 --show-leak-kinds=all --leak-check=full ./native_test_c
191+ leak-c
192+ COMMAND valgrind --track-origins=yes --error-exitcode=2 --leak-check=full ./native_test_c
191193)
192194
193195# Check memory leak
@@ -203,6 +205,13 @@ install(FILES ${HEADERS} DESTINATION include/native)
203205install (DIRECTORY java DESTINATION include/native)
204206install (FILES ${HEADERS} DESTINATION include/native)
205207
208+ # Add uninstall
209+ add_custom_target (
210+ uninstall
211+ COMMAND rm -rf /usr/local/include/native
212+ COMMAND rm -rf /usr/local/lib/libnative*
213+ )
214+
206215# Link library for OSX and other platform
207216# Darwin platform no need to link realtime library (-lrt)
208217if (${CMAKE_SYSTEM_NAME } MATCHES "Darwin" )
0 commit comments