2024-02-07 21:44:20 +08:00
|
|
|
|
cmake_minimum_required(VERSION 3.14)
|
|
|
|
|
|
|
|
|
|
project(ncmdump LANGUAGES CXX)
|
|
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
|
|
2024-02-08 10:26:53 +08:00
|
|
|
|
add_subdirectory(taglib)
|
2024-02-07 21:44:20 +08:00
|
|
|
|
|
|
|
|
|
FILE(GLOB HEADERS ./*.h)
|
|
|
|
|
FILE(GLOB SOURCES ./*.cpp)
|
|
|
|
|
add_executable(ncmdump
|
|
|
|
|
${HEADERS}
|
|
|
|
|
${SOURCES}
|
|
|
|
|
)
|
|
|
|
|
target_link_libraries(ncmdump tag)
|
|
|
|
|
target_include_directories(ncmdump PRIVATE taglib)
|
|
|
|
|
target_include_directories(ncmdump PRIVATE taglib/taglib)
|
|
|
|
|
target_include_directories(ncmdump PRIVATE taglib/taglib/toolkit)
|
|
|
|
|
target_include_directories(ncmdump PRIVATE taglib/taglib/mpeg/id3v2)
|
|
|
|
|
|
|
|
|
|
include(GNUInstallDirs)
|
|
|
|
|
install(TARGETS ncmdump
|
|
|
|
|
BUNDLE DESTINATION .
|
|
|
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
|
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
|
|
|
)
|