diff options
| author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
| commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
| tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /vcpkg-ports/alac/CMakeLists.txt | |
| parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
| parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
| download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz | |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'vcpkg-ports/alac/CMakeLists.txt')
| -rw-r--r-- | vcpkg-ports/alac/CMakeLists.txt | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/vcpkg-ports/alac/CMakeLists.txt b/vcpkg-ports/alac/CMakeLists.txt new file mode 100644 index 00000000..0110f95a --- /dev/null +++ b/vcpkg-ports/alac/CMakeLists.txt @@ -0,0 +1,61 @@ +cmake_minimum_required (VERSION 3.9)
+project (alac)
+
+set(HEADERS
+ codec/EndianPortable.h
+ codec/aglib.h
+ codec/ALACAudioTypes.h
+ codec/ALACBitUtilities.h
+ codec/ALACDecoder.h
+ codec/ALACEncoder.h
+ codec/dplib.h
+ codec/matrixlib.h
+)
+
+
+set (SRCS
+ codec/EndianPortable.c
+ codec/ALACBitUtilities.c
+ codec/ALACDecoder.cpp
+ codec/ALACEncoder.cpp
+ codec/ag_dec.c
+ codec/ag_enc.c
+ codec/dp_dec.c
+ codec/dp_enc.c
+ codec/matrix_dec.c
+ codec/matrix_enc.c
+)
+
+set(EXE_SRCS
+ convert-utility/main.cpp
+ convert-utility/CAFFileALAC.cpp
+)
+
+if(MSVC)
+ add_compile_options(/W4 -D_CRT_SECURE_NO_WARNINGS -DTARGET_OS_WIN32)
+endif()
+
+include_directories(. codec convert-utility)
+
+add_library(libalac ${SRCS})
+
+add_executable(alacconvert ${EXE_SRCS})
+target_link_libraries(alacconvert libalac)
+
+install(
+ TARGETS libalac
+ RUNTIME DESTINATION bin
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib
+)
+
+if(NOT DISABLE_INSTALL_TOOLS)
+ install (
+ TARGETS alacconvert
+ RUNTIME DESTINATION tools/alac
+ )
+endif()
+
+if(NOT DISABLE_INSTALL_HEADERS)
+ install(FILES ${HEADERS} DESTINATION include/alac)
+endif()
|
