-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [VgaTerminal] add writeXY overload methods * [VgaTerminal | optimization] write char only if different * update to v0.4.0 * update examples. Fixes #156 * update README.md * update cmake config * [VgaTerminal | writeXY ] add overload methods * update README * add write{,XY} tests
- Loading branch information
Showing
11 changed files
with
594 additions
and
478 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,39 @@ | ||
cmake_minimum_required (VERSION 3.16) | ||
|
||
if(DEFINED ENV{VCPKG_ROOT} AND NOT DEFINED CMAKE_TOOLCHAIN_FILE) | ||
set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" CACHE STRING "") | ||
endif() | ||
|
||
project ("sdl2-vga-terminal" VERSION 0.3.0 DESCRIPTION "Vga Terminal on SDL2") | ||
|
||
|
||
################################ Packages #################################### | ||
set (CPACK_SYSTEM_NAME ${CMAKE_SYSTEM_NAME}) | ||
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") | ||
if(CMAKE_SIZEOF_VOID_P EQUAL 8) | ||
set(CPACK_SYSTEM_NAME win64) | ||
else() | ||
set(CPACK_SYSTEM_NAME win32) | ||
endif() | ||
endif() | ||
set(CPACK_PACKAGE_FILE_NAME ${CMAKE_PROJECT_NAME}-${CMAKE_PROJECT_VERSION}-${CPACK_SYSTEM_NAME}-${CMAKE_BUILD_TYPE}) | ||
set(CPACK_SOURCE_GENERATOR "ZIP") | ||
set(CPACK_GENERATOR "ZIP") | ||
set(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/README.md") | ||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY ${CMAKE_PROJECT_DESCRIPTION}) | ||
include(CPack) | ||
|
||
|
||
################################# Options #################################### | ||
option(BUILD_SHARED_LIBS "build shared libs with C inteface" ON) | ||
option(BUILD_EXAMPLES "build examples" ON) | ||
include(CTest) | ||
option(ENABLE_CODE_COVERAGE "compile Debug with code coverage" OFF) | ||
option(BUILD_SNAPSHOT "build snapshot test" OFF) | ||
include(CMakeDependentOption) | ||
CMAKE_DEPENDENT_OPTION(TEST_DUMP_SNAPSHOT "build test to dump the expected output instead of verifing it" OFF | ||
"BUILD_SNAPSHOT" OFF) | ||
option(WITH_SDL2_STATIC "linking STATIC LIB with SDL2 STATIC" OFF) | ||
option(HAVE_PRECISE_TIMER "if SDL2 timers are precise" ON) | ||
|
||
enable_testing() | ||
add_subdirectory ("sdl2-vga-terminal") | ||
cmake_minimum_required (VERSION 3.16) | ||
|
||
if(DEFINED ENV{VCPKG_ROOT} AND NOT DEFINED CMAKE_TOOLCHAIN_FILE) | ||
set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" CACHE STRING "") | ||
endif() | ||
|
||
project ("sdl2-vga-terminal" VERSION 0.4.0 DESCRIPTION "Vga Terminal on SDL2") | ||
|
||
|
||
################################ Packages #################################### | ||
set (CPACK_SYSTEM_NAME ${CMAKE_SYSTEM_NAME}) | ||
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") | ||
if(CMAKE_SIZEOF_VOID_P EQUAL 8) | ||
set(CPACK_SYSTEM_NAME win64) | ||
else() | ||
set(CPACK_SYSTEM_NAME win32) | ||
endif() | ||
endif() | ||
set(CPACK_PACKAGE_FILE_NAME ${CMAKE_PROJECT_NAME}-${CMAKE_PROJECT_VERSION}-${CPACK_SYSTEM_NAME}-${CMAKE_BUILD_TYPE}) | ||
set(CPACK_SOURCE_GENERATOR "ZIP") | ||
set(CPACK_GENERATOR "ZIP") | ||
set(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/README.md") | ||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY ${CMAKE_PROJECT_DESCRIPTION}) | ||
include(CPack) | ||
|
||
|
||
################################# Options #################################### | ||
option(BUILD_SHARED_LIBS "build shared libs with C inteface" ON) | ||
option(BUILD_EXAMPLES "build examples" ON) | ||
include(CTest) | ||
option(ENABLE_CODE_COVERAGE "compile Debug with code coverage" OFF) | ||
option(BUILD_SNAPSHOT "build snapshot test" OFF) | ||
include(CMakeDependentOption) | ||
CMAKE_DEPENDENT_OPTION(TEST_DUMP_SNAPSHOT "build test to dump the expected output instead of verifing it" OFF | ||
"BUILD_SNAPSHOT" OFF) | ||
option(WITH_SDL2_STATIC "linking STATIC LIB with SDL2 STATIC" OFF) | ||
option(HAVE_PRECISE_TIMER "if SDL2 timers are precise" ON) | ||
|
||
add_subdirectory ("sdl2-vga-terminal") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.