Logo
Explore Help
Sign In
tqcq/CPM.cmake
0
0
Fork 0
You've already forked CPM.cmake
mirror of https://github.com/cpm-cmake/CPM.cmake.git synced 2025-11-21 01:47:28 -05:00
Code Issues Packages Projects Releases Wiki Activity
Files
8b67fe23447a564d0cff45e94547a23c114109b5
CPM.cmake/test/integration/templates/using-patch-adder/using-patch-adder.cpp

9 lines
133 B
C++
Raw Normal View History

Adding PATCHES keyword. (#558) * 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.
2024-06-12 08:43:27 -05:00
#include <adder/adder.hpp>
#include <cstdio>
int main() {
int sum = patched::add(5, 3);
std::printf("%d\n", sum);
return 0;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.1 Page: 2786ms Template: 106ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API