Wip Fix preprocessor on Cmake

This commit is contained in:
Simon De Backer
2020-12-08 19:57:35 +01:00
parent 1871b7ad12
commit 10c4c3d528
181 changed files with 1052 additions and 900 deletions

View File

@@ -17,6 +17,7 @@
cmake_minimum_required(VERSION 3.5)
message("_____________________________________________________________________")
project(G_unittests LANGUAGES CXX)
if(DEFINED ENV{QET_DIR})
@@ -32,7 +33,12 @@ SET(CMAKE_CXX_STANDARD 17)
find_package(Qt5Gui REQUIRED)
find_package(Qt5Xml REQUIRED)
find_package(Qt5Svg REQUIRED)
find_package(Qt5Sql REQUIRED)
find_package(Qt5Concurrent REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(KF5WidgetsAddons)
find_package(KF5CoreAddons)
Include(FetchContent)
@@ -46,16 +52,19 @@ FetchContent_MakeAvailable(GTest)
add_executable(
${PROJECT_NAME}
tst_My_test.cpp
main.cpp
${QET_DIR}/sources/borderproperties.h
${QET_DIR}/sources/borderproperties.cpp)
main.cpp)
target_link_libraries(
${PROJECT_NAME}
PUBLIC
gtest gtest_main
PRIVATE
KF5::WidgetsAddons
KF5::CoreAddons
Qt5::Gui
Qt5::Xml
Qt5::Widgets)
Qt5::Svg
Qt5::Sql
Qt5::Widgets
Qt5::Concurrent)