This is a clone of the (silly) PadLeft library -- but the CMakeLists.txt file seems to be empty!
Your task is to re-write CMakeLists.txt for this project.
Your CMake project definition should consist of two targets:
-
A library target named
padleft
with the source filesrc/padleft.cpp
. The public headers for this library live in theinclude/
directory -
An executable target named
test_padleft
, using the source filestest/test_padleft.cpp
andtest/catch_main.cpp
. This target should link with thepadleft
target
Your project definition should also require a minimum CMake version of 3.1, and that it uses the C++ language (only).
Have fun!