Commit 68f6544b authored by Kohei Yoshida's avatar Kohei Yoshida

Add a check target and add ixion-test to its first test.

parent e9e2a497
Pipeline #43424441 passed with stage
in 3 minutes and 53 seconds
......@@ -17,6 +17,9 @@ find_package(Boost COMPONENTS program_options filesystem)
find_package(Threads)
find_package(Python3)
enable_testing()
set(CMAKE_CTEST_COMMAND ctest -V)
if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4251 /wd4275 /MP")
endif(MSVC)
......@@ -128,3 +131,17 @@ install(TARGETS libixion ixion-parser ixion-sorter ixion-formula-tokenizer
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
# test programs
add_executable(ixion-test EXCLUDE_FROM_ALL
${LIBIXION_SRC_DIR}/ixion_test.cpp
)
target_link_libraries(ixion-test libixion)
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND})
add_dependencies(check
ixion-test
)
add_test(ixion-test ixion-test)
......@@ -31,7 +31,7 @@ private:
model_iterator(const model_context& cxt, sheet_t sheet, const abs_rc_range_t& range, rc_direction_t dir);
public:
struct cell
struct IXION_DLLPUBLIC cell
{
row_t row;
col_t col;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment