This repository (or really, just this README.md
file; see last § below) is intended to help you work on programming exercises (“katas”) from the popular codewars.com website, from the comfort of your IDE on your workstation.
- Clone the repository into a new name of your choosing, e.g.:
git clone git@github.com:epfl-si/starterpack-igloo-snowhouse.git my-kata
- Edit
CMakeLists.txt
to change theproject()
stanza to e.g.project(my-kata)
- Edit, compile and run
codewars.cpp
ever after
- Create a new C++ project with CLion
- Add the following snippet verbatim near the top of your
CMakeLists.txt
file:include(FetchContent) FetchContent_Declare( igloo GIT_REPOSITORY https://github.com/codewars/igloo.git GIT_TAG 2a63f3dfb1c267e7c349caa473812b4d8e8b121c ) FetchContent_MakeAvailable(igloo)
- Add this other snippet at the bottom (after the
add_executable
stanza):wheretarget_link_libraries(my-kata PRIVATE igloo)
my-kata
should be replaced by the name of youradd_excutable
target.