Remove testing code from CMake. Intended to be used via CI gitea actions
This commit is contained in:
parent
b4427a0c88
commit
c8e7a28837
@ -5,9 +5,8 @@ project(glerminal
|
||||
LANGUAGES C CXX
|
||||
)
|
||||
|
||||
include(CTest)
|
||||
|
||||
option(GLERMINAL_OPENGL_DEBUG_CONTEXT "" OFF)
|
||||
option(GLERMINAL_TEST "" OFF)
|
||||
set(GLERMINAL_GRID_WIDTH 40 CACHE STRING "")
|
||||
set(GLERMINAL_GRID_HEIGHT 25 CACHE STRING "")
|
||||
set(GLERMINAL_LAYER_COUNT 64 CACHE STRING "")
|
||||
@ -66,6 +65,6 @@ if (PROJECT_IS_TOP_LEVEL)
|
||||
add_subdirectory(examples examples)
|
||||
endif()
|
||||
|
||||
if (BUILD_TESTING)
|
||||
if (GLERMINAL_TEST)
|
||||
add_subdirectory(tests tests)
|
||||
endif()
|
@ -53,5 +53,4 @@ foreach(SOURCE_FILE ${TEST_SOURCES})
|
||||
get_filename_component(SOURCE_FILENAME ${SOURCE_FILE} NAME_WLE)
|
||||
add_executable(test-${SOURCE_FILENAME} WIN32 ${SOURCE_FILE} ${TEST_RESOURCES})
|
||||
target_link_libraries(test-${SOURCE_FILENAME} PRIVATE glerminal test-common)
|
||||
add_test(NAME test-${SOURCE_FILENAME} COMMAND test-${SOURCE_FILENAME})
|
||||
endforeach()
|
Loading…
Reference in New Issue
Block a user