Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.24 KB

README.md

File metadata and controls

38 lines (25 loc) · 1.24 KB

T'Pau Foundation

Foundation is a C++ library collecting various classes and functions that are used in other T'Pau projects. It is meant to be included as a Git submodule.

Using Foundation

To use this library in another cmake project, add the following lines to the top level CMakeLists.txt:

add_subdirectory(foundation/lib)
set(PACKAGE_AUTHOR "<author name>")
set(PACKAGE_BUGREPORT "<bugreport email address>")

Add this lines to your config.h.in:

#define PACKAGE "@CMAKE_PROJECT_NAME@"
#define PACKAGE_BUGREPORT "@PACKAGE_BUGREPORT@"
#define VERSION "@CMAKE_PROJECT_VERSION@"
#define PACKAGE_AUTHOR "@PACKAGE_AUTHOR@"

For the programs using the library, add:

target_include_directories(${PROGRAM} PRIVATE ${CMAKE_SOURCE_DIR}/foundation/lib ${PROJECT_BINARY_DIR})
target_link_libraries(${PROGRAM} foundation)

Building Foundation

Foundation is written in C++20.

To build it, you need a C++20 compiler and cmake. To run the tests, you need Python and nihtest.

Github Actions Build Status