2026-10-17 16:21:22 +02:00
|
|
|
add_executable(pglabtests
|
|
|
|
|
main.cpp
|
|
|
|
|
TableTreeBuilderTests.cpp
|
|
|
|
|
tst_ConvertLangToSqlString.cpp
|
|
|
|
|
tst_ConvertToMultiLineCString.cpp
|
|
|
|
|
tst_ExplainJsonParser.cpp
|
|
|
|
|
tst_HumanReadableBytes.cpp
|
|
|
|
|
tst_TryParsePostgresqlUrl.cpp
|
|
|
|
|
tst_escapeConnectionStringValue.cpp
|
|
|
|
|
tst_expected.cpp
|
|
|
|
|
tst_SqlLexer.cpp
|
2026-10-22 17:52:37 +02:00
|
|
|
tst_SqlContext.cpp
|
|
|
|
|
tst_SqlCompletionProvider.cpp
|
2026-10-17 16:21:22 +02:00
|
|
|
tst_scopeguard.cpp
|
|
|
|
|
tst_CsvWriter.cpp
|
|
|
|
|
tst_PasswordManager.cpp
|
|
|
|
|
tst_ParamJson.cpp
|
|
|
|
|
tst_CodeBuilder.cpp
|
|
|
|
|
tst_NameManglingRules.cpp
|
|
|
|
|
tst_TypeMappings.cpp
|
|
|
|
|
tst_Range.cpp
|
2026-10-18 07:48:33 +02:00
|
|
|
ResultSourceMappingTest.cpp
|
2026-10-20 18:58:10 +02:00
|
|
|
tst_RecordPanel.cpp
|
2026-10-26 14:47:19 +01:00
|
|
|
tst_SslModeModel.cpp
|
|
|
|
|
tst_ConnectionConfigurationWidget.cpp
|
2026-10-17 16:21:22 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(pglabtests PRIVATE
|
2026-10-26 14:47:19 +01:00
|
|
|
pglabapp
|
2026-10-17 16:21:22 +02:00
|
|
|
pglablib
|
|
|
|
|
pgsql
|
|
|
|
|
core
|
|
|
|
|
mygtestutils
|
|
|
|
|
GTest::gtest
|
|
|
|
|
Qt6::Core
|
|
|
|
|
Qt6::Widgets
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_include_directories(pglabtests PRIVATE
|
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
2026-10-20 18:58:10 +02:00
|
|
|
${CMAKE_SOURCE_DIR}/pglab
|
|
|
|
|
${CMAKE_SOURCE_DIR}/pglab/crud
|
2026-10-17 16:21:22 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
set_target_properties(pglabtests PROPERTIES
|
|
|
|
|
CXX_STANDARD 20
|
|
|
|
|
CXX_STANDARD_REQUIRED ON
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
add_test(NAME pglabtests COMMAND pglabtests)
|