forked from vesoft-inc/nebula
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace libev with libevent in GenericWorker (vesoft-inc#26)
Turned on `-Wshadow`.
- Loading branch information
Showing
10 changed files
with
126 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
add_executable( | ||
concurrent_test | ||
BarrierTest.cpp | ||
LatchTest.cpp | ||
$<TARGET_OBJECTS:concurrent_obj> | ||
$<TARGET_OBJECTS:thread_obj> | ||
$<TARGET_OBJECTS:time_obj> | ||
concurrent_test | ||
BarrierTest.cpp | ||
LatchTest.cpp | ||
$<TARGET_OBJECTS:concurrent_obj> | ||
$<TARGET_OBJECTS:thread_obj> | ||
$<TARGET_OBJECTS:time_obj> | ||
) | ||
target_link_libraries( | ||
concurrent_test | ||
event | ||
gtest | ||
gtest_main | ||
glog | ||
gflags | ||
pthread | ||
) | ||
target_link_libraries(concurrent_test ev gtest gtest_main pthread) | ||
add_test(NAME concurrent_test COMMAND concurrent_test) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,31 @@ | ||
add_executable(parser_test ParserTest.cpp $<TARGET_OBJECTS:parser_obj>) | ||
target_link_libraries(parser_test gtest gtest_main pthread) | ||
add_executable( | ||
parser_test | ||
ParserTest.cpp | ||
$<TARGET_OBJECTS:parser_obj> | ||
) | ||
target_link_libraries( | ||
parser_test | ||
gtest | ||
gtest_main | ||
glog | ||
gflags | ||
pthread | ||
) | ||
target_include_directories(parser_test SYSTEM BEFORE PUBLIC ${FLEX_INCLUDE_DIRS}) | ||
add_test(NAME parser_test COMMAND parser_test) | ||
|
||
add_executable(scanner_test ScannerTest.cpp $<TARGET_OBJECTS:parser_obj>) | ||
target_link_libraries(scanner_test gtest gtest_main pthread) | ||
add_executable( | ||
scanner_test | ||
ScannerTest.cpp | ||
$<TARGET_OBJECTS:parser_obj> | ||
) | ||
target_link_libraries( | ||
scanner_test | ||
gtest | ||
gtest_main | ||
glog | ||
gflags | ||
pthread | ||
) | ||
target_include_directories(scanner_test SYSTEM BEFORE PUBLIC ${FLEX_INCLUDE_DIRS}) | ||
add_test(NAME scanner_test COMMAND scanner_test) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters