-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Settled for pascal case on library names Removed unused TEST_SOURCES definitions Unified minimum CMake required version to 3.22 Removed HEADERS definitions from Agent target
- Loading branch information
Showing
6 changed files
with
13 additions
and
25 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
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,9 @@ | ||
find_package(GTest CONFIG REQUIRED) | ||
|
||
add_executable(communicator_test communicator_test.cpp) | ||
target_link_libraries(communicator_test PUBLIC communicator GTest::gtest GTest::gtest_main GTest::gmock GTest::gmock_main) | ||
target_link_libraries(communicator_test PUBLIC Communicator GTest::gtest GTest::gtest_main GTest::gmock GTest::gmock_main) | ||
add_test(NAME CommunicatorTest COMMAND communicator_test) | ||
|
||
add_executable(http_client_test http_client_test.cpp) | ||
target_link_libraries(http_client_test PUBLIC communicator GTest::gtest GTest::gtest_main GTest::gmock GTest::gmock_main) | ||
target_link_libraries(http_client_test PUBLIC Communicator GTest::gtest GTest::gtest_main GTest::gmock GTest::gmock_main) | ||
add_test(NAME HttpClientTest COMMAND http_client_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,17 @@ | ||
find_package(GTest CONFIG REQUIRED) | ||
|
||
set(TEST_SOURCES | ||
agent_test.cpp | ||
task_manager_test.cpp | ||
register_test.cpp | ||
signal_handler_test.cpp | ||
) | ||
|
||
add_executable(agent_test agent_test.cpp) | ||
target_link_libraries(agent_test PRIVATE agent GTest::gtest) | ||
target_link_libraries(agent_test PRIVATE Agent GTest::gtest) | ||
add_test(NAME AgentTest COMMAND agent_test) | ||
|
||
add_executable(task_manager_test task_manager_test.cpp) | ||
target_link_libraries(task_manager_test PRIVATE agent GTest::gtest) | ||
target_link_libraries(task_manager_test PRIVATE Agent GTest::gtest) | ||
add_test(NAME TaskManagerTest COMMAND task_manager_test) | ||
|
||
add_executable(register_test register_test.cpp) | ||
target_link_libraries(register_test PRIVATE agent GTest::gtest) | ||
target_link_libraries(register_test PRIVATE Agent GTest::gtest) | ||
add_test(NAME RegisterTest COMMAND register_test) | ||
|
||
add_executable(signal_handler_test signal_handler_test.cpp) | ||
target_link_libraries(signal_handler_test PRIVATE agent GTest::gtest) | ||
target_link_libraries(signal_handler_test PRIVATE Agent GTest::gtest) | ||
add_test(NAME SignalHandlerTest COMMAND signal_handler_test) |