-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
44 lines (38 loc) · 1.81 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(zzip)
#find_package (zlib REQUIRED)
INCLUDE_DIRECTORIES(.)
FILE(GLOB zzip_files zzip/*.c)
FILE(GLOB zzipwrap_files zzipwrap/*.c)
FILE(GLOB zzip_headers zzip/*.h)
ADD_LIBRARY (zzip ${zzip_files} ${zzipwrap_files})
install(TARGETS zzip ARCHIVE DESTINATION lib)
install(FILES "zzip/autoconf.h" DESTINATION include/zzip)
install(FILES "zzip/conf.h" DESTINATION include/zzip)
install(FILES "zzip/_config.h" DESTINATION include/zzip)
install(FILES "zzip/fetch.h" DESTINATION include/zzip)
install(FILES "zzip/file.h" DESTINATION include/zzip)
install(FILES "zzip/format.h" DESTINATION include/zzip)
install(FILES "zzip/fseeko.h" DESTINATION include/zzip)
install(FILES "zzip/info.h" DESTINATION include/zzip)
install(FILES "zzip/lib.h" DESTINATION include/zzip)
install(FILES "zzip/memdisk.h" DESTINATION include/zzip)
install(FILES "zzip/mmapped.h" DESTINATION include/zzip)
install(FILES "zzip/_msvc.h" DESTINATION include/zzip)
install(FILES "zzip/plugin.h" DESTINATION include/zzip)
install(FILES "zzip/stdint.h" DESTINATION include/zzip)
install(FILES "zzip/types.h" DESTINATION include/zzip)
install(FILES "zzip/write.h" DESTINATION include/zzip)
install(FILES "zzip/zzip.h" DESTINATION include/zzip)
install(FILES "zzip/zzip32.h" DESTINATION include/zzip)
install(FILES "zzipwrap/wrap.h" DESTINATION include/zzip)
# work around
#install(FILES "zzip/zzip.h" DESTINATION include)
#install(FILES "/usr/include/zzip-io.h" DESTINATION include)
#install(FILES "/usr/include/zziplib.h" DESTINATION include)
file(WRITE "zzip.h" "#include <zzip/lib.h> ")
install(FILES "zzip.h" DESTINATION include)
install(FILES "CMake/FindZZIP.cmake" DESTINATION lib)
#install(FILES "zzip/zzip.h" DESTINATION include)
#install(FILES "zzip/zziplib.h" DESTINATION include)
#install(FILES "zzip/zzip-io.h" DESTINATION include)