60 lines
2.1 KiB
CMake
60 lines
2.1 KiB
CMake
cmake_minimum_required (VERSION 3.12)
|
|
|
|
project ("dl")
|
|
|
|
|
|
message("生成目标平台:${CMAKE_SYSTEM}")
|
|
|
|
message("------------------解析第三方库------------------")
|
|
message("------------------lz4 压缩库-------------------")
|
|
add_subdirectory ("third/lz4")
|
|
message("------------------fmt 文本格式化库--------------")
|
|
add_subdirectory ("third/fmt")
|
|
|
|
message("------------------lunasvg svg格式库-----------")
|
|
add_subdirectory ("third/lunasvg")
|
|
if (NOT CMAKE_SYSTEM_NAME MATCHES "Android")
|
|
message("------------------libwebp webp格式库-----------")
|
|
add_subdirectory ("third/libwebp")
|
|
endif()
|
|
message("------------------OpenXLSX xlsx格式库-----------")
|
|
add_subdirectory ("third/OpenXLSX")
|
|
|
|
if (NOT CMAKE_SYSTEM_NAME MATCHES "Android")
|
|
message("------------------glfw 窗口库------------------")
|
|
add_subdirectory ("third/glfw")
|
|
endif()
|
|
message("------------------freetype 字体解析库-----------")
|
|
add_subdirectory ("third/freetype")
|
|
message("------------------ogg vorbis 音频格式库-----------")
|
|
add_subdirectory ("third/ogg")
|
|
set (OGG_LIBRARY "third/ogg")
|
|
set (OGG_INCLUDE_DIR "third/ogg")
|
|
add_subdirectory ("third/vorbis")
|
|
message("------------------flac 音频格式库-----------")
|
|
set (INSTALL_MANPAGES false)
|
|
add_subdirectory ("third/flac")
|
|
message("------------------openal-soft 音频库-----------")
|
|
if (CMAKE_SYSTEM_NAME MATCHES "Windows")
|
|
add_subdirectory ("third/openal-soft")
|
|
endif()
|
|
if (NOT CMAKE_SYSTEM_NAME MATCHES "Android")
|
|
message("------------------ode 物理引擎库-----------")
|
|
add_subdirectory ("third/ode")
|
|
endif()
|
|
|
|
if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
|
|
message("------------------iconv 文本编码转换库-----------")
|
|
#add_subdirectory ("third/libiconv")
|
|
endif()
|
|
|
|
message("------------------其余库以其他形式链接----------")
|
|
message("------------------nlohmann-json json库---------")
|
|
message("------------------stb_image 图像解析库----------")
|
|
message("------------------vld 内存泄漏检测库----------")
|
|
message("------------------asio 网络库-----------")
|
|
|
|
message("------------------解析dl-----------------------")
|
|
add_subdirectory ("dl")
|
|
add_subdirectory ("dltest")
|