Getting Started | C++

Installation

Install trueform — header-only via CMake FetchContent.

Requirements

  • C++17 or later
  • Intel TBB for parallelism

CMake (FetchContent)

Add to your CMakeLists.txt:

CMakeLists.txt
include(FetchContent)

FetchContent_Declare(
  trueform
  GIT_REPOSITORY https://github.com/xlabmedical/trueform.git
  GIT_TAG        main
)

FetchContent_MakeAvailable(trueform)

add_executable(my_app main.cpp)
target_link_libraries(my_app PRIVATE tf::trueform)

Verify

Include the main header and build:

main.cpp
#include <trueform/trueform.hpp>

int main() {
  return 0;
}

Then build:

Terminal
mkdir build && cd build
cmake ..
make -j