Switch to cmake + vcpkg, builds on linux, windows needs verification.
Code has been modified to be portable.
This commit is contained in:
parent
c1a5ac1aad
commit
49f6619a4e
34 changed files with 678 additions and 327 deletions
24
tests/PgsqlTests/CMakeLists.txt
Normal file
24
tests/PgsqlTests/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
add_executable(PgsqlTests
|
||||
main.cpp
|
||||
tst_Value.cpp
|
||||
tst_ArrayParser.cpp
|
||||
tst_Pgsql_oids.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(PgsqlTests PRIVATE
|
||||
pgsql
|
||||
mygtestutils
|
||||
GTest::gtest
|
||||
Qt6::Core
|
||||
)
|
||||
|
||||
target_include_directories(PgsqlTests PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
set_target_properties(PgsqlTests PROPERTIES
|
||||
CXX_STANDARD 20
|
||||
CXX_STANDARD_REQUIRED ON
|
||||
)
|
||||
|
||||
add_test(NAME PgsqlTests COMMAND PgsqlTests)
|
||||
Loading…
Add table
Add a link
Reference in a new issue