2023-07-15 19:44:29 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
2023-07-16 00:15:31 +00:00
|
|
|
project(
|
|
|
|
mlc
|
|
|
|
VERSION 0.0.1
|
|
|
|
DESCRIPTION "Media Library Compiler: rips your media library to a lossy compilation"
|
|
|
|
LANGUAGES CXX
|
|
|
|
)
|
|
|
|
cmake_policy(SET CMP0076 NEW)
|
|
|
|
cmake_policy(SET CMP0079 NEW)
|
2023-07-15 19:44:29 +00:00
|
|
|
|
2023-07-16 00:15:31 +00:00
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
|
2023-07-15 19:44:29 +00:00
|
|
|
|
2023-07-16 00:15:31 +00:00
|
|
|
find_package(LAME REQUIRED)
|
|
|
|
find_package(FLAC REQUIRED)
|
2023-07-18 23:05:32 +00:00
|
|
|
find_package(JPEG REQUIRED)
|
2023-07-16 00:15:31 +00:00
|
|
|
|
|
|
|
add_executable(mlc
|
|
|
|
main.cpp
|
|
|
|
help.cpp
|
|
|
|
decoded.cpp
|
2023-07-16 23:36:25 +00:00
|
|
|
flactomp3.cpp
|
2023-07-19 22:12:18 +00:00
|
|
|
collection.cpp
|
2023-07-16 00:15:31 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(mlc
|
|
|
|
${LAME_LIBRARIES}
|
|
|
|
FLAC
|
2023-07-18 23:05:32 +00:00
|
|
|
JPEG::JPEG
|
2023-07-16 00:15:31 +00:00
|
|
|
)
|
2023-07-15 19:44:29 +00:00
|
|
|
|
|
|
|
install(TARGETS mlc RUNTIME DESTINATION bin)
|