1
0
forked from blue/mlc
mlc/CMakeLists.txt

36 lines
720 B
CMake
Raw Permalink Normal View History

2023-07-15 19:44:29 +00:00
cmake_minimum_required(VERSION 3.0)
2023-07-16 00:15:31 +00:00
project(
mlc
2023-07-21 21:32:24 +00:00
VERSION 1.0.1
2023-07-16 00:15:31 +00:00
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)
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-21 21:32:24 +00:00
taskmanager.cpp
2023-07-23 12:04:26 +00:00
loggable.cpp
2023-07-16 00:15:31 +00:00
)
target_link_libraries(mlc
${LAME_LIBRARIES}
FLAC
JPEG::JPEG
2023-07-16 00:15:31 +00:00
)
2023-07-15 19:44:29 +00:00
install(TARGETS mlc RUNTIME DESTINATION bin)