-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New name base91x and prepared for PYPI release
- Loading branch information
Showing
18 changed files
with
494 additions
and
316 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
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,17 +1,24 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
project(base91) | ||
project(base91x) | ||
|
||
set(CMAKE_CXX_STANDARD 20) | ||
set(CMAKE_CXX_FLAGS " ${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra ") | ||
|
||
add_executable(base91 base91.cpp) | ||
# includes | ||
INCLUDE_DIRECTORIES(./include/) | ||
|
||
add_executable(perf_base91 perf_base91.cpp perf_base91.cpp) | ||
|
||
add_executable(test_base91 test_base91.cpp test_base91.cpp) | ||
|
||
add_test(NAME test_base91 COMMAND test_base91) | ||
# main executable | ||
add_executable(${PROJECT_NAME} src/base91x.cpp) | ||
|
||
# unit tests | ||
set(PROJECT_TEST_NAME test_${PROJECT_NAME}) | ||
add_executable(${PROJECT_TEST_NAME} tests/test_base91x.cpp) | ||
add_test(NAME ${PROJECT_TEST_NAME} COMMAND ${PROJECT_TEST_NAME}) | ||
enable_testing() | ||
|
||
install(TARGETS base91) | ||
# performance test - use make perf | ||
set(PROJECT_PERF_NAME perf_${PROJECT_NAME}) | ||
add_executable(${PROJECT_PERF_NAME} perf/perf_base91x.cpp) | ||
ADD_CUSTOM_TARGET(perf COMMAND ${PROJECT_PERF_NAME}) | ||
|
||
install(TARGETS ${PROJECT_NAME}) |
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
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.