mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
31 lines
734 B
CMake
31 lines
734 B
CMake
include(CheckIncludeFile)
|
|
include(CheckIncludeFiles)
|
|
include(CheckSymbolExists)
|
|
include(CheckFunctionExists)
|
|
include(CheckLibraryExists)
|
|
include(CheckTypeSize)
|
|
include(CheckCXXSourceCompiles)
|
|
|
|
# check for libz using the cmake supplied FindZLIB.cmake
|
|
find_package(ZLIB)
|
|
if(ZLIB_FOUND)
|
|
set(HAVE_ZLIB 1)
|
|
else()
|
|
set(HAVE_ZLIB 0)
|
|
endif()
|
|
|
|
# Determine whether your compiler supports codecvt header.
|
|
|
|
check_cxx_source_compiles("
|
|
#include <codecvt>
|
|
int main() { std::codecvt_utf8_utf16<wchar_t> x; return 0; }
|
|
" HAVE_CODECVT)
|
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
|
|
find_package(CppUnit)
|
|
if(NOT CppUnit_FOUND AND BUILD_TESTS)
|
|
message(STATUS "CppUnit not found, disabling tests.")
|
|
set(BUILD_TESTS OFF)
|
|
endif()
|
|
|