summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt4
-rw-r--r--examples/c/CMakeLists.txt2
-rw-r--r--examples/c/decode/file/CMakeLists.txt2
-rw-r--r--examples/c/encode/file/CMakeLists.txt2
-rw-r--r--examples/cpp/CMakeLists.txt2
-rw-r--r--examples/cpp/decode/file/CMakeLists.txt2
-rw-r--r--examples/cpp/encode/file/CMakeLists.txt2
7 files changed, 16 insertions, 0 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
new file mode 100644
index 00000000..96298fd7
--- /dev/null
+++ b/examples/CMakeLists.txt
@@ -0,0 +1,4 @@
+add_subdirectory("c")
+if(BUILD_CXXLIBS)
+ add_subdirectory("cpp")
+endif()
diff --git a/examples/c/CMakeLists.txt b/examples/c/CMakeLists.txt
new file mode 100644
index 00000000..41153417
--- /dev/null
+++ b/examples/c/CMakeLists.txt
@@ -0,0 +1,2 @@
+add_subdirectory("decode/file")
+add_subdirectory("encode/file")
diff --git a/examples/c/decode/file/CMakeLists.txt b/examples/c/decode/file/CMakeLists.txt
new file mode 100644
index 00000000..60dc18e0
--- /dev/null
+++ b/examples/c/decode/file/CMakeLists.txt
@@ -0,0 +1,2 @@
+add_executable(decode_file main.c)
+target_link_libraries(decode_file FLAC-static)
diff --git a/examples/c/encode/file/CMakeLists.txt b/examples/c/encode/file/CMakeLists.txt
new file mode 100644
index 00000000..c9c8e802
--- /dev/null
+++ b/examples/c/encode/file/CMakeLists.txt
@@ -0,0 +1,2 @@
+add_executable(encode_file main.c)
+target_link_libraries(encode_file FLAC-static)
diff --git a/examples/cpp/CMakeLists.txt b/examples/cpp/CMakeLists.txt
new file mode 100644
index 00000000..41153417
--- /dev/null
+++ b/examples/cpp/CMakeLists.txt
@@ -0,0 +1,2 @@
+add_subdirectory("decode/file")
+add_subdirectory("encode/file")
diff --git a/examples/cpp/decode/file/CMakeLists.txt b/examples/cpp/decode/file/CMakeLists.txt
new file mode 100644
index 00000000..0cea828a
--- /dev/null
+++ b/examples/cpp/decode/file/CMakeLists.txt
@@ -0,0 +1,2 @@
+add_executable(decode_file_cxx main.cpp)
+target_link_libraries(decode_file_cxx FLACXX-static)
diff --git a/examples/cpp/encode/file/CMakeLists.txt b/examples/cpp/encode/file/CMakeLists.txt
new file mode 100644
index 00000000..b4526d71
--- /dev/null
+++ b/examples/cpp/encode/file/CMakeLists.txt
@@ -0,0 +1,2 @@
+add_executable(encode_file_cxx main.cpp)
+target_link_libraries(encode_file_cxx FLACXX-static)