Skip to content

Commit

Permalink
Upgrade ctest.h to latest version.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcnamara committed Sep 25, 2023
1 parent 42a0641 commit 4be85bd
Show file tree
Hide file tree
Showing 4 changed files with 357 additions and 233 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@ file(GLOB LXW_CHART_SOURCES test/unit/chart/test*.c)
file(GLOB LXW_CUSTOM_SOURCES test/unit/custom/test*.c)
file(GLOB LXW_FUNCTIONAL_SOURCES test/functional/src/*.c)

if(NOT MSVC)
# Skip unit tests on Windows since ctest.h doesn't support it.
set(LXW_UNIT_SOURCES
test/unit/test_all.c
${LXW_UTILITY_SOURCES}
Expand All @@ -362,6 +364,11 @@ set(LXW_UNIT_SOURCES
${LXW_CHART_SOURCES}
${LXW_CUSTOM_SOURCES}
)
else()
set(LXW_UNIT_SOURCES
test/cpp/test_compilation.cpp
)
endif()

if(BUILD_TESTS)
# unit tests
Expand Down
Loading

0 comments on commit 4be85bd

Please sign in to comment.