Skip to content

Commit

Permalink
squash
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsergio committed Dec 23, 2024
1 parent 8af7b47 commit c8a6072
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ if(KDDW_FRONTEND_QTWIDGETS)
add_executable(
tst_qtwidgets qtwidgets/tst_qtwidgets.cpp qtwidgets/mainwindow.ui ${TESTING_SRCS} ${TESTING_RESOURCES}
)
target_link_libraries(tst_qtwidgets kddockwidgets Qt${QT_VERSION_MAJOR}::Test)
target_link_libraries(tst_qtwidgets PRIVATE kddockwidgets Qt${QT_VERSION_MAJOR}::Test)
kddw_link_to_kdbindings(tst_qtwidgets)

if(KDDockWidgets_HAS_SPDLOG)
target_link_libraries(tst_qtwidgets spdlog::spdlog)
target_link_libraries(tst_qtwidgets PRIVATE spdlog::spdlog)
endif()
kddw_add_nlohmann(tst_qtwidgets)
set_compiler_flags(tst_qtwidgets)
Expand All @@ -73,10 +73,10 @@ endif()
# tst_qtquick
if(KDDW_FRONTEND_QTQUICK)
add_executable(tst_qtquick qtquick/tst_qtquick.cpp ${TESTING_SRCS} ${TESTING_RESOURCES})
target_link_libraries(tst_qtquick kddockwidgets Qt${QT_VERSION_MAJOR}::Test)
target_link_libraries(tst_qtquick PRIVATE kddockwidgets Qt${QT_VERSION_MAJOR}::Test)
kddw_link_to_kdbindings(tst_qtquick)
if(KDDockWidgets_HAS_SPDLOG)
target_link_libraries(tst_qtquick spdlog::spdlog)
target_link_libraries(tst_qtquick PRIVATE spdlog::spdlog)
endif()
kddw_add_nlohmann(tst_qtquick)
set_compiler_flags(tst_qtquick)
Expand All @@ -90,11 +90,11 @@ if(KDDW_FRONTEND_QT)
# Function to add a test
function(add_kddw_test test srcs)
add_executable(${test} ${srcs} ${TESTING_RESOURCES} ${TESTING_SRCS})
target_link_libraries(${test} kddockwidgets)
target_link_libraries(${test} PRIVATE kddockwidgets)
kddw_link_to_kdbindings(${test})
target_include_directories(${test} PRIVATE ${CMAKE_BINARY_DIR})
if(KDDockWidgets_HAS_SPDLOG)
target_link_libraries(${test} spdlog::spdlog)
target_link_libraries(${test} PRIVATE spdlog::spdlog)
endif()

kddw_add_nlohmann(${test})
Expand Down

0 comments on commit c8a6072

Please sign in to comment.