Skip to content

Commit 5cf5e0b

Browse files
committed
cmake: move compression library targets to Misc folder.
1 parent 8f1c487 commit 5cf5e0b

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

cdk/extra/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ ADD_LIBRARY(lz4 STATIC
4949
lz4/xxhash.c
5050
)
5151

52+
set_target_properties(lz4 PROPERTIES FOLDER "Misc")
53+
5254
target_include_directories(lz4 PUBLIC lz4)
5355

5456
add_subdirectory(zstd)

cdk/extra/zlib/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ endif()
159159
ADD_LIBRARY(zlib STATIC
160160
${ZLIB_SRCS} ${ZLIB_PUBLIC_HDRS} ${ZLIB_PRIVATE_HDRS})
161161

162+
set_target_properties(zlib PROPERTIES FOLDER "Misc")
163+
162164
if(NOT CYGWIN)
163165
# This property causes shared libraries on Linux to have the full version
164166
# encoded into their final filename. We disable this on Cygwin because
@@ -181,5 +183,5 @@ elseif(UNIX)
181183
endif()
182184
endif()
183185

184-
ADD_EXECUTABLE(try_zlib try.cc)
185-
TARGET_LINK_LIBRARIES(try_zlib zlib)
186+
#ADD_EXECUTABLE(try_zlib try.cc)
187+
#TARGET_LINK_LIBRARIES(try_zlib zlib)

cdk/extra/zstd/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ SET(ZSTD_SRCS
5252
)
5353

5454
ADD_LIBRARY(zstd STATIC ${ZSTD_SRCS})
55+
set_target_properties(zstd PROPERTIES FOLDER "Misc")
56+
5557
#-----------------------------------------------------------------------------
5658
# Add extra compilation flags
5759
#-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)