diff options
author | Vitaliy Kirsanov <krokoziabla@yandex-team.ru> | 2019-03-31 23:04:45 +0300 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2019-05-04 11:41:48 +1000 |
commit | c39718d7a36405114f9ed0b1a7acaef64ea88131 (patch) | |
tree | 3d3633d0af41f00ccb6f0ec4dc48f9b018d5ff7c /examples | |
parent | 12ec86c6188aef9ebd4b9bd0393eab7326e185fc (diff) | |
download | flac-c39718d7a36405114f9ed0b1a7acaef64ea88131.tar.gz |
CMake support added
Diffstat (limited to 'examples')
-rw-r--r-- | examples/CMakeLists.txt | 4 | ||||
-rw-r--r-- | examples/c/CMakeLists.txt | 2 | ||||
-rw-r--r-- | examples/c/decode/file/CMakeLists.txt | 2 | ||||
-rw-r--r-- | examples/c/encode/file/CMakeLists.txt | 2 | ||||
-rw-r--r-- | examples/cpp/CMakeLists.txt | 2 | ||||
-rw-r--r-- | examples/cpp/decode/file/CMakeLists.txt | 2 | ||||
-rw-r--r-- | examples/cpp/encode/file/CMakeLists.txt | 2 |
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) |