2016-02-11 12:04:49 +01:00
|
|
|
project (cpp-utils-test)
|
|
|
|
|
|
|
|
set(SOURCES
|
|
|
|
crypto/symmetric/CipherTest.cpp
|
|
|
|
crypto/kdf/SCryptTest.cpp
|
2016-02-22 02:38:06 +01:00
|
|
|
crypto/kdf/SCryptParametersTest.cpp
|
2017-09-30 09:49:24 +02:00
|
|
|
crypto/hash/HashTest.cpp
|
2016-02-11 12:04:49 +01:00
|
|
|
MacrosIncludeTest.cpp
|
|
|
|
pointer/unique_ref_test.cpp
|
|
|
|
pointer/cast_include_test.cpp
|
|
|
|
pointer/cast_test.cpp
|
|
|
|
pointer/unique_ref_boost_optional_gtest_workaround_include_test.cpp
|
|
|
|
pointer/optional_ownership_ptr_include_test.cpp
|
|
|
|
pointer/optional_ownership_ptr_test.cpp
|
|
|
|
pointer/unique_ref_include_test.cpp
|
|
|
|
process/daemonize_include_test.cpp
|
|
|
|
process/subprocess_include_test.cpp
|
2018-05-20 09:14:17 +02:00
|
|
|
process/SubprocessTest.cpp
|
2019-01-22 04:23:48 +01:00
|
|
|
process/SignalCatcherTest.cpp
|
2019-03-17 09:08:57 +01:00
|
|
|
process/SignalHandlerTest.cpp
|
2016-02-11 12:04:49 +01:00
|
|
|
tempfile/TempFileTest.cpp
|
|
|
|
tempfile/TempFileIncludeTest.cpp
|
|
|
|
tempfile/TempDirIncludeTest.cpp
|
|
|
|
tempfile/TempDirTest.cpp
|
|
|
|
network/CurlHttpClientTest.cpp
|
|
|
|
network/FakeHttpClientTest.cpp
|
2018-05-20 00:48:16 +02:00
|
|
|
io/DontEchoStdinToStdoutRAIITest.cpp
|
2016-02-11 12:04:49 +01:00
|
|
|
io/ConsoleIncludeTest.cpp
|
|
|
|
io/ConsoleTest_AskYesNo.cpp
|
|
|
|
io/ConsoleTest_Print.cpp
|
|
|
|
io/ConsoleTest_Ask.cpp
|
2018-09-04 01:51:59 +02:00
|
|
|
io/ConsoleTest_AskPassword.cpp
|
2019-01-23 07:02:34 +01:00
|
|
|
io/ProgressBarTest.cpp
|
2016-02-11 12:04:49 +01:00
|
|
|
random/RandomIncludeTest.cpp
|
|
|
|
lock/LockPoolIncludeTest.cpp
|
|
|
|
lock/ConditionBarrierIncludeTest.cpp
|
|
|
|
lock/MutexPoolLockIncludeTest.cpp
|
|
|
|
data/FixedSizeDataTest.cpp
|
|
|
|
data/DataFixtureIncludeTest.cpp
|
|
|
|
data/DataFixtureTest.cpp
|
|
|
|
data/DataTest.cpp
|
|
|
|
data/FixedSizeDataIncludeTest.cpp
|
2017-12-03 20:01:41 +01:00
|
|
|
data/SerializationHelperTest.cpp
|
2016-02-11 12:04:49 +01:00
|
|
|
data/DataIncludeTest.cpp
|
|
|
|
logging/LoggingLevelTest.cpp
|
|
|
|
logging/LoggerTest.cpp
|
|
|
|
logging/LoggingTest.cpp
|
|
|
|
logging/LoggerIncludeTest.cpp
|
|
|
|
logging/LoggingIncludeTest.cpp
|
|
|
|
assert/assert_release_test.cpp
|
2018-05-17 07:31:43 +02:00
|
|
|
assert/backtrace_test.cpp
|
2016-02-11 12:04:49 +01:00
|
|
|
assert/assert_debug_test.cpp
|
2018-05-17 07:22:42 +02:00
|
|
|
system/GetTotalMemoryTest.cpp
|
2018-05-17 07:18:45 +02:00
|
|
|
system/TimeTest.cpp
|
2019-01-19 22:02:41 +01:00
|
|
|
system/PathTest.cpp
|
2018-09-03 18:23:11 +02:00
|
|
|
system/FiletimeTest.cpp
|
2017-09-05 01:43:43 +02:00
|
|
|
system/MemoryTest.cpp
|
2018-05-17 06:34:01 +02:00
|
|
|
system/HomedirTest.cpp
|
2018-09-04 00:46:08 +02:00
|
|
|
system/EnvTest.cpp
|
2019-01-20 12:21:20 +01:00
|
|
|
thread/debugging_test.cpp
|
2019-01-22 03:59:38 +01:00
|
|
|
thread/LeftRightTest.cpp
|
2018-05-22 08:11:51 +02:00
|
|
|
value_type/ValueTypeTest.cpp
|
2016-02-11 12:04:49 +01:00
|
|
|
)
|
|
|
|
|
2018-07-09 04:34:08 +02:00
|
|
|
add_executable(${PROJECT_NAME}_exit_status process/exit_status.cpp)
|
2018-08-08 03:54:51 +02:00
|
|
|
target_activate_cpp14(${PROJECT_NAME}_exit_status)
|
|
|
|
|
2018-08-02 01:29:14 +02:00
|
|
|
add_executable(${PROJECT_NAME}_exit_signal assert/exit_signal.cpp)
|
2018-08-08 03:54:51 +02:00
|
|
|
target_activate_cpp14(${PROJECT_NAME}_exit_signal)
|
2018-08-02 01:29:14 +02:00
|
|
|
target_link_libraries(${PROJECT_NAME}_exit_signal cpp-utils)
|
2018-07-09 04:34:08 +02:00
|
|
|
|
2016-02-11 12:04:49 +01:00
|
|
|
add_executable(${PROJECT_NAME} ${SOURCES})
|
2019-03-24 06:01:26 +01:00
|
|
|
target_link_libraries(${PROJECT_NAME} my-gtest-main googletest cpp-utils)
|
2018-08-02 01:29:14 +02:00
|
|
|
add_dependencies(${PROJECT_NAME} ${PROJECT_NAME}_exit_status ${PROJECT_NAME}_exit_signal)
|
2016-02-11 12:04:49 +01:00
|
|
|
add_test(${PROJECT_NAME} ${PROJECT_NAME})
|
|
|
|
|
2016-02-11 12:57:50 +01:00
|
|
|
target_enable_style_warnings(${PROJECT_NAME})
|
|
|
|
target_activate_cpp14(${PROJECT_NAME})
|