-
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.
- Loading branch information
1 parent
c7e1806
commit 45a3d45
Showing
8 changed files
with
38 additions
and
0 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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
test | ||
text | ||
*.swp | ||
build/ |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
project(text) | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED True) | ||
|
||
include_directories(include) | ||
|
||
file(GLOB SOURCES | ||
src/*.cpp | ||
) | ||
list(REMOVE_ITEM SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/catch.cpp") | ||
list(REMOVE_ITEM SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/bufferTest.cpp") | ||
list(REMOVE_ITEM SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/InputProcessorTest.cpp") | ||
list(REMOVE_ITEM SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/test.cpp") | ||
list(REMOVE_ITEM SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/main.cpp") | ||
|
||
add_executable(text ${SOURCES} src/main.cpp) | ||
|
||
find_library(NCURSES_LIBRARY NAMES ncurses) | ||
target_link_libraries(text ${NCURSES_LIBRARY}) | ||
|
||
enable_testing() | ||
|
||
add_executable(test_all | ||
${SOURCES} | ||
src/test.cpp | ||
src/catch.cpp | ||
src/bufferTest.cpp | ||
src/InputProcessorTest.cpp | ||
) | ||
|
||
target_link_libraries(test_all ${NCURSES_LIBRARY}) | ||
|
||
add_test(NAME test_all COMMAND test) | ||
|
||
install(TARGETS text RUNTIME DESTINATION bin) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.