Skip to content

Commit 54d41b3

Browse files
author
gxu
committed
Rando
Signed-off-by: gxu <[email protected]>
1 parent 7cfa5ee commit 54d41b3

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

CMakePresets.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,18 @@
116116
"lhs": "${hostSystemName}",
117117
"rhs": "Linux"
118118
}
119+
},
120+
{
121+
"name": "windows-x64",
122+
"configurePreset": "windows-x64",
123+
"output": {
124+
"outputOnFailure": true
125+
},
126+
"condition": {
127+
"type": "equals",
128+
"lhs": "${hostSystemName}",
129+
"rhs": "Windows"
130+
}
119131
}
120132
]
121133
}

tests/CMakeLists.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ function(add_test_executable test_name source_file)
3434
add_test(NAME ${test_name} COMMAND ${test_name})
3535
endfunction()
3636

37-
if(LINUX OR APPLE)
38-
# Add the directory for the C++ tests.
39-
add_subdirectory(cpp)
37+
# Add the directory for the C++ tests.
38+
add_subdirectory(cpp)
4039

41-
# Add the new directory for io tests.
42-
add_subdirectory(io/ymq)
43-
endif()

tests/cpp/CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
# this fetches Google Test, so it must be included first.
2-
add_subdirectory(object_storage)
3-
add_subdirectory(ymq)
2+
if(LINUX OR APPLE)
3+
add_subdirectory(object_storage)
4+
endif()
5+
6+
if(LINUX OR APPLE OR WIN32)
7+
add_subdirectory(ymq)
8+
endif()

0 commit comments

Comments
 (0)