chore: no ZLIB and TESTING

This commit is contained in:
TaurusXin 2024-02-12 22:24:25 +08:00
parent 5cfe439e48
commit 435aab5de6
Signed by: taurusxin
GPG Key ID: C334DCA04AC2D2CC
1 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,8 @@ project(ncmdump LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(WITH_ZLIB OFF)
set(BUILD_TESTING OFF)
add_subdirectory(taglib) add_subdirectory(taglib)
FILE(GLOB HEADERS ./*.h) FILE(GLOB HEADERS ./*.h)
@ -20,7 +22,7 @@ target_include_directories(ncmdump PRIVATE taglib/taglib/toolkit)
target_include_directories(ncmdump PRIVATE taglib/taglib/mpeg/id3v2) target_include_directories(ncmdump PRIVATE taglib/taglib/mpeg/id3v2)
if(WIN32) if(WIN32)
if(CMAKE_COMPILER_IS_GNUCXX) if(CMAKE_CXX_COMPILER_ID STREQUAL 'GNU')
target_link_options(ncmdump PRIVATE -O2 -municode) target_link_options(ncmdump PRIVATE -O2 -municode)
endif() endif()
endif() endif()