diff --git a/README.md b/README.md index e3b14c0..dbb6230 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,14 @@ set_target_properties(myProject PROPERTIES CXX_STANDARD 17) target_link_libraries(myProject LarsParser) ``` +## Adding CPM + +To add CPM to your current project, simply add `cmake/CPM.cmake` to your project's `cmake` directory. The command below will perform this automatically. + +```bash +wget -O cmake/CPM.cmake https://raw.githubusercontent.com/TheLartians/CPM/master/cmake/CPM.cmake +``` + ## Examples ### Catch2 @@ -86,14 +94,6 @@ target_include_directories(lua ) ``` -## Adding CPM - -To add CPM to your current project, simply add `cmake/CPM.cmake` to your project's `cmake` directory. The command below will perform this automatically. - -```bash -wget -O cmake/CPM.cmake https://raw.githubusercontent.com/TheLartians/CPM/master/cmake/CPM.cmake -``` - ## Updating CPM To update CPM to the newest version, simply update the script in the project's cmake directory, for example by running the command above. Dependencies using CPM will automatically use the updated script of the outermost project.