Skip to content

Commit 3bc8f33

Browse files
committed
Fix CI/CD for Windows unit-tests
1 parent 5291b82 commit 3bc8f33

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/cmake_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ jobs:
101101
if: startsWith (matrix.os, 'windows')
102102
run: |
103103
cd build
104-
ctest --output-on-failure --progress
104+
ctest -C ${{ matrix.configuration }} --output-on-failure --progress

CMakeLists.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ set(CMAKE_DISABLE_SOURCE_CHANGES ON)
1313
set(OpenGL_GL_PREFERENCE LEGACY)
1414
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
1515

16+
# Enable AUTOMOC globally for all targets (needed for examples with Q_OBJECT)
17+
set(CMAKE_AUTOMOC ON)
18+
set(CMAKE_AUTORCC ON)
19+
1620
get_directory_property(_has_parent PARENT_DIRECTORY)
1721
if(_has_parent)
1822
set(is_root_project OFF)
@@ -189,12 +193,6 @@ set_target_properties(QtNodes
189193
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
190194
)
191195

192-
######
193-
# Moc
194-
##
195-
set_target_properties(QtNodes PROPERTIES AUTOMOC ON AUTORCC ON)
196-
197-
198196
###########
199197
# Examples
200198
##

0 commit comments

Comments
 (0)