Skip to content

Commit

Permalink
cmake ci/cd test (attempt 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelwernel committed Dec 21, 2023
1 parent 90e416c commit 7db1a1b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,21 @@ if(CMAKE_BUILD_TYPE MATCHES "Debug")
endif()


# CTest stuff
include(CTest)
enable_testing()


# add executable
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin")
add_executable(${TARGET} "src/cli.cpp")
set_property(TARGET ${TARGET} PROPERTY CXX_STANDARD 20)
set_property(TARGET ${TARGET} PROPERTY CXX_STANDARD_REQUIRED ON)


# CTest stuff
include(CTest)
enable_testing()
add_test(executable, "${CMAKE_SOURCE_DIR}/bin/${TARGET}")
add_test(checks
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/ctest_checks.py
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/cmake/
add_test(
NAME checks
COMMAND "python3 ${CMAKE_CURRENT_SOURCE_DIR}/cmake/ctest_checks.py"
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/cmake/"
)


Expand Down

0 comments on commit 7db1a1b

Please sign in to comment.