mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-17 14:47:30 -05:00
* Adding PATCHES keyword. * Formatting fix. * Move cpm_add_patches() outside if/else scopes. * cmake-format: add PATCHES to CPMAddPackage. * Integration tests for PATCHES command. * Use get_filename_component() in place of cmake_path() for use with all cmake versions 3.14 and above. * Added an example and improved comment for cpm_add_patches.
9 lines
133 B
C++
9 lines
133 B
C++
#include <adder/adder.hpp>
|
|
#include <cstdio>
|
|
|
|
int main() {
|
|
int sum = patched::add(5, 3);
|
|
std::printf("%d\n", sum);
|
|
return 0;
|
|
}
|