2020-09-09 20:40:15 -07:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2022-08-17 09:35:26 -07:00
|
|
|
index cf86d70..c2bc2f9 100644
|
2020-09-09 20:40:15 -07:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
|
|
|
@@ -1,6 +1,6 @@
|
2022-08-17 09:35:26 -07:00
|
|
|
cmake_minimum_required(VERSION 3.14)
|
2020-09-09 20:40:15 -07:00
|
|
|
|
|
|
|
-project(zip
|
|
|
|
+project(kubazip
|
|
|
|
LANGUAGES C
|
2022-08-17 09:35:26 -07:00
|
|
|
VERSION "0.2.3")
|
2020-09-09 20:40:15 -07:00
|
|
|
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
|
2022-08-17 09:35:26 -07:00
|
|
|
@@ -46,11 +46,11 @@ endif()
|
2020-09-09 20:40:15 -07:00
|
|
|
|
|
|
|
target_include_directories(${PROJECT_NAME} PUBLIC
|
|
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
|
|
|
|
- $<INSTALL_INTERFACE:include>
|
|
|
|
+ $<INSTALL_INTERFACE:include/${PROJECT_NAME}>
|
|
|
|
)
|
|
|
|
|
|
|
|
# test
|
2022-08-17 09:35:26 -07:00
|
|
|
-if (NOT CMAKE_DISABLE_TESTING)
|
|
|
|
+if (0)
|
|
|
|
enable_testing()
|
|
|
|
add_subdirectory(test)
|
|
|
|
endif()
|
|
|
|
@@ -69,12 +69,12 @@ if (MSVC)
|
|
|
|
elseif ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR
|
|
|
|
"${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR
|
|
|
|
"${CMAKE_C_COMPILER_ID}" STREQUAL "AppleClang")
|
|
|
|
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Werror -pedantic")
|
|
|
|
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -pedantic")
|
|
|
|
endif (MSVC)
|
2020-09-09 20:40:15 -07:00
|
|
|
|
2022-08-17 09:35:26 -07:00
|
|
|
####
|
2020-09-09 20:40:15 -07:00
|
|
|
set(CONFIG_INSTALL_DIR "lib/cmake/${PROJECT_NAME}")
|
|
|
|
-set(INCLUDE_INSTALL_DIR "include")
|
|
|
|
+set(INCLUDE_INSTALL_DIR "include/${PROJECT_NAME}")
|
|
|
|
|
|
|
|
set(GENERATED_DIR "${CMAKE_CURRENT_BINARY_DIR}/generated")
|
|
|
|
|