summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2019-03-20 17:47:51 +0100
committerMarkus Mittendrein <git@maxmitti.tk>2019-03-20 17:47:51 +0100
commitafaebd0407af3f88dfa9c46b74754a1d96f92ab5 (patch)
treeb67d7985362711f1c73e48f4551b5ccb7c0730f3 /CMakeLists.txt
parentbca1c49cf8aad47f5c1ecc2ba4f92f51115d7329 (diff)
downloadcc4group-afaebd0407af3f88dfa9c46b74754a1d96f92ab5.tar.gz
cc4group-afaebd0407af3f88dfa9c46b74754a1d96f92ab5.zip
Add openAsChild, currently without writing support
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 944b9eb..4604c81 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -55,14 +55,22 @@ function(example name)
target_link_libraries(${name} PRIVATE cc4group)
endfunction()
+function(examplepp name)
+ add_executable(${name} examples/${name}.cpp)
+ target_link_libraries(${name} PRIVATE cppc4group)
+endfunction()
+
example(unc4group)
example(c4copy)
example(c4info)
example(c4ls)
+example(c4ls_asChild)
example(c4touch)
example(c4rm)
example(c4mkdir)
+examplepp(c4ls_asChildPp)
+
add_executable(c4cat examples/c4cat.c)
target_link_libraries(c4cat PRIVATE cc4group)
target_compile_definitions(c4cat PRIVATE CC4GROUP_PLATFORM_${CC4GROUP_PLATFORM_DEF})