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
19
tests/mygtestutils/CMakeLists.txt
Normal file
19
tests/mygtestutils/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
add_library(mygtestutils STATIC
|
||||
PrintTo_Qt.cpp
|
||||
PrintTo_Qt.h
|
||||
)
|
||||
|
||||
target_link_libraries(mygtestutils PUBLIC
|
||||
GTest::gtest
|
||||
Qt6::Core
|
||||
)
|
||||
|
||||
target_include_directories(mygtestutils PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
set_target_properties(mygtestutils PROPERTIES
|
||||
CXX_STANDARD 20
|
||||
CXX_STANDARD_REQUIRED ON
|
||||
POSITION_INDEPENDENT_CODE ON
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue