Skip to content

Commit 451c742

Browse files
committed
Add cpp directory
1 parent c09ca0a commit 451c742

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

examples/cpp/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
function(add_cpp_example example_name)
2+
add_executable(${example_name} ${example_name}.cpp)
3+
target_link_libraries(${example_name} binsparse-rc)
4+
endfunction()
5+
6+
set(CMAKE_CXX_STANDARD 20)
7+
add_cpp_example(simple)

examples/cpp/simple.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#include <binsparse/binsparse.h>
2+
3+
int main(int argc, char** argv) {
4+
return 0;
5+
}

0 commit comments

Comments
 (0)