tqdm / tqdm.cpp

C++ port of tqdm
Other
318 stars 29 forks source link

Adding CMake support #58

Closed tdegeus closed 2 years ago

tdegeus commented 3 years ago

Here is my proposal to define a CMake target and pkg-config support. A disadvantage is a bit the name, since tqdm is already used for the executable, the target should be something else. I chose tqdm.cpp, but I think not all files can be named that way.

Anyway, one can now have a CMakeLists.txt as follows:

cmake_minimum_required(VERSION 3.1)

project(Run)

find_package(tqdm)
add_executable(${PROJECT_NAME} main.cpp)
target_link_libraries(${PROJECT_NAME} tqdm.cpp)

Happy to discuss!

Fixes https://github.com/tqdm/tqdm.cpp/issues/55

tdegeus commented 2 years ago

Closing due to a lack of interest