Skip to content

Commit

Permalink
Add Glyph WIP tests
Browse files Browse the repository at this point in the history
  • Loading branch information
a-n-t-h-o-n-y committed Jan 31, 2024
1 parent 56158a6 commit 4316743
Show file tree
Hide file tree
Showing 3 changed files with 422 additions and 13 deletions.
21 changes: 8 additions & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ project(escape LANGUAGES CXX)

# Escape Library
add_library(escape STATIC
include/esc/glyph.hpp

src/io.cpp
src/terminfo.cpp
src/terminal.cpp
Expand Down Expand Up @@ -51,19 +53,6 @@ else()
message("LTO Not Enabled")
endif()

include(GNUInstallDirs)
install(TARGETS escape
ARCHIVE
DESTINATION ${CMAKE_INSTALL_LIBDIR}
CONFIGURATIONS Release
)
install(
DIRECTORY
${PROJECT_SOURCE_DIR}/include/esc
DESTINATION
${CMAKE_INSTALL_INCLUDEDIR}
)

# TermCaps Executable
add_executable(termcaps EXCLUDE_FROM_ALL
tools/termcaps.cpp
Expand All @@ -80,3 +69,9 @@ target_compile_options(termcaps
-Wextra
-Wpedantic
)

if (NOT TARGET Catch2)
add_subdirectory(external/Catch2)
endif()

add_subdirectory(tests)
19 changes: 19 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

add_executable(escape.tests.unit EXCLUDE_FROM_ALL
glyph.test.cpp
)

target_compile_options(
escape.tests.unit
PRIVATE
-Wall
-Wextra
-Wpedantic
)

target_link_libraries(
escape.tests.unit
PRIVATE
escape
Catch2::Catch2WithMain
)
Loading

0 comments on commit 4316743

Please sign in to comment.