From 0a7f5a80d8532a1d8cfa0a902c9d1ad7651eca37 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sat, 20 Apr 2024 23:36:39 +0300 Subject: [PATCH] CMake: List API headers in LIBLZMA_API_HEADERS variable This way the same list will be usable in more than one location. --- CMakeLists.txt | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cfdd9531..ac6b5803 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -395,15 +395,7 @@ if(NOT WIN32) set_property(CACHE SYMBOL_VERSIONING PROPERTY STRINGS "OFF;generic;linux") endif() - -add_library(liblzma - src/common/mythread.h - src/common/sysdefs.h - src/common/tuklib_common.h - src/common/tuklib_config.h - src/common/tuklib_integer.h - src/common/tuklib_physmem.c - src/common/tuklib_physmem.h +set(LIBLZMA_API_HEADERS src/liblzma/api/lzma.h src/liblzma/api/lzma/base.h src/liblzma/api/lzma/bcj.h @@ -419,6 +411,17 @@ add_library(liblzma src/liblzma/api/lzma/stream_flags.h src/liblzma/api/lzma/version.h src/liblzma/api/lzma/vli.h +) + +add_library(liblzma + src/common/mythread.h + src/common/sysdefs.h + src/common/tuklib_common.h + src/common/tuklib_config.h + src/common/tuklib_integer.h + src/common/tuklib_physmem.c + src/common/tuklib_physmem.h + ${LIBLZMA_API_HEADERS} src/liblzma/check/check.c src/liblzma/check/check.h src/liblzma/check/crc_common.h