summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorVitaliy Kirsanov <krokoziabla@yandex-team.ru>2019-03-31 23:04:45 +0300
committerErik de Castro Lopo <erikd@mega-nerd.com>2019-05-04 11:41:48 +1000
commitc39718d7a36405114f9ed0b1a7acaef64ea88131 (patch)
tree3d3633d0af41f00ccb6f0ec4dc48f9b018d5ff7c /src/utils
parent12ec86c6188aef9ebd4b9bd0393eab7326e185fc (diff)
downloadflac-c39718d7a36405114f9ed0b1a7acaef64ea88131.tar.gz
CMake support added
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/CMakeLists.txt6
-rw-r--r--src/utils/flacdiff/CMakeLists.txt4
-rw-r--r--src/utils/flactimer/CMakeLists.txt2
3 files changed, 12 insertions, 0 deletions
diff --git a/src/utils/CMakeLists.txt b/src/utils/CMakeLists.txt
new file mode 100644
index 00000000..cd7b060f
--- /dev/null
+++ b/src/utils/CMakeLists.txt
@@ -0,0 +1,6 @@
+if(BUILD_CXXLIBS)
+ add_subdirectory(flacdiff)
+ if(WIN32)
+ add_subdirectory(flactimer)
+ endif()
+endif()
diff --git a/src/utils/flacdiff/CMakeLists.txt b/src/utils/flacdiff/CMakeLists.txt
new file mode 100644
index 00000000..d64383ff
--- /dev/null
+++ b/src/utils/flacdiff/CMakeLists.txt
@@ -0,0 +1,4 @@
+add_executable(flacdiff main.cpp)
+target_link_libraries(flacdiff
+ FLACXX-static
+ $<TARGET_NAME_IF_EXISTS:win_utf8_io>) \ No newline at end of file
diff --git a/src/utils/flactimer/CMakeLists.txt b/src/utils/flactimer/CMakeLists.txt
new file mode 100644
index 00000000..d40de89c
--- /dev/null
+++ b/src/utils/flactimer/CMakeLists.txt
@@ -0,0 +1,2 @@
+add_executable(flactimer main.cpp)
+target_link_libraries(flactimer FLACXX-static)