diff options
| -rw-r--r-- | contrib/ada/CMakeLists.txt | 31 | ||||
| -rw-r--r-- | contrib/blast/CMakeLists.txt | 14 | ||||
| -rw-r--r-- | contrib/iostream3/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | contrib/puff/CMakeLists.txt | 11 |
4 files changed, 33 insertions, 27 deletions
diff --git a/contrib/ada/CMakeLists.txt b/contrib/ada/CMakeLists.txt index 3ede5f9..a0dcf0c 100644 --- a/contrib/ada/CMakeLists.txt +++ b/contrib/ada/CMakeLists.txt | |||
| @@ -46,21 +46,24 @@ function(ZLIB_ADA_findTestEnv testName) | |||
| 46 | endfunction(ZLIB_ADA_findTestEnv testName) | 46 | endfunction(ZLIB_ADA_findTestEnv testName) |
| 47 | 47 | ||
| 48 | if(ZLIB_ADA_BUILD_SHARED) | 48 | if(ZLIB_ADA_BUILD_SHARED) |
| 49 | ada_add_library(zlib-Ada SHARED | 49 | ada_add_library(zlib_ada_Ada SHARED |
| 50 | zlib-thin.adb | 50 | zlib-thin.adb |
| 51 | zlib.adb) | 51 | zlib.adb) |
| 52 | 52 | ||
| 53 | target_link_libraries(zlib-Ada | 53 | set_target_properties(zlib_ada_Ada |
| 54 | PROPERTIES OUTPUT_NAME zlib-ada) | ||
| 55 | |||
| 56 | target_link_libraries(zlib_ada_Ada | ||
| 54 | INTERFACE ZLIB::ZLIB) | 57 | INTERFACE ZLIB::ZLIB) |
| 55 | 58 | ||
| 56 | ada_add_library(zlib-streams SHARED | 59 | ada_add_library(zlib_ada_streams SHARED |
| 57 | zlib-streams.adb) | 60 | zlib-streams.adb) |
| 58 | 61 | ||
| 59 | target_link_libraries(zlib-streams | 62 | target_link_libraries(zlib_ada_streams |
| 60 | PUBLIC | 63 | PUBLIC |
| 61 | zlib-Ada) | 64 | zlib_ada_Ada) |
| 62 | 65 | ||
| 63 | ada_find_ali(zlib-streams) | 66 | ada_find_ali(zlib_ada_streams) |
| 64 | 67 | ||
| 65 | if(ZLIB_ADA_BUILD_TESTING) | 68 | if(ZLIB_ADA_BUILD_TESTING) |
| 66 | enable_testing() | 69 | enable_testing() |
| @@ -142,24 +145,24 @@ if(ZLIB_ADA_BUILD_SHARED) | |||
| 142 | endif(ZLIB_ADA_BUILD_SHARED) | 145 | endif(ZLIB_ADA_BUILD_SHARED) |
| 143 | 146 | ||
| 144 | if(ZLIB_ADA_BUILD_STATIC) | 147 | if(ZLIB_ADA_BUILD_STATIC) |
| 145 | ada_add_library(zlib-AdaStatic STATIC | 148 | ada_add_library(zlib_ada_AdaStatic STATIC |
| 146 | zlib-thin.adb | 149 | zlib-thin.adb |
| 147 | zlib.adb) | 150 | zlib.adb) |
| 148 | 151 | ||
| 149 | target_link_libraries(zlib-AdaStatic | 152 | target_link_libraries(zlib_ada_AdaStatic |
| 150 | INTERFACE ZLIB::ZLIBSTATIC) | 153 | INTERFACE ZLIB::ZLIBSTATIC) |
| 151 | 154 | ||
| 152 | set_target_properties(zlib-AdaStatic | 155 | set_target_properties(zlib_ada_AdaStatic |
| 153 | PROPERTIES OUTPUT_NAME zlib-Ada${zlib_Ada_static_suffix}) | 156 | PROPERTIES OUTPUT_NAME zlib-ada${zlib_Ada_static_suffix}) |
| 154 | 157 | ||
| 155 | ada_add_library(zlib-streamsStatic STATIC | 158 | ada_add_library(zlib_ada_streamsStatic STATIC |
| 156 | zlib-streams.adb) | 159 | zlib-streams.adb) |
| 157 | 160 | ||
| 158 | target_link_libraries(zlib-streamsStatic | 161 | target_link_libraries(zlib_ada_streamsStatic |
| 159 | PUBLIC | 162 | PUBLIC |
| 160 | zlib-AdaStatic) | 163 | zlib_ada_AdaStatic) |
| 161 | 164 | ||
| 162 | ada_find_ali(zlib-streamsStatic) | 165 | ada_find_ali(zlib_ada_streamsStatic) |
| 163 | 166 | ||
| 164 | if(ZLIB_ADA_BUILD_TESTING) | 167 | if(ZLIB_ADA_BUILD_TESTING) |
| 165 | enable_testing() | 168 | enable_testing() |
diff --git a/contrib/blast/CMakeLists.txt b/contrib/blast/CMakeLists.txt index a917eb8..092c5e2 100644 --- a/contrib/blast/CMakeLists.txt +++ b/contrib/blast/CMakeLists.txt | |||
| @@ -36,7 +36,7 @@ function(blast_findTestEnv testName) | |||
| 36 | endfunction(blast_findTestEnv testName) | 36 | endfunction(blast_findTestEnv testName) |
| 37 | 37 | ||
| 38 | if(ZLIB_BLAST_BUILD_SHARED) | 38 | if(ZLIB_BLAST_BUILD_SHARED) |
| 39 | add_library(blast SHARED | 39 | add_library(zlib_blast_blast SHARED |
| 40 | blast.c | 40 | blast.c |
| 41 | blast.h) | 41 | blast.h) |
| 42 | 42 | ||
| @@ -56,12 +56,12 @@ if(ZLIB_BLAST_BUILD_SHARED) | |||
| 56 | 56 | ||
| 57 | if(ZLIB_BLAST_BUILD_TESTING) | 57 | if(ZLIB_BLAST_BUILD_TESTING) |
| 58 | enable_testing() | 58 | enable_testing() |
| 59 | add_executable(blast-test blast-test.c) | 59 | add_executable(zlib_blast_blast-test blast-test.c) |
| 60 | target_link_libraries(blast-test blast) | 60 | target_link_libraries(zlib_blast_blast-test PRIVATE zlib_blast_blast) |
| 61 | 61 | ||
| 62 | add_test(NAME blast_blast-test | 62 | add_test(NAME zlib_blast_blast-test |
| 63 | COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_SOURCE_DIR}/tester.cmake | 63 | COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_SOURCE_DIR}/tester.cmake |
| 64 | "$<TARGET_FILE:blast-test>" | 64 | "$<TARGET_FILE:zlib_blast_blast-test>" |
| 65 | "${CMAKE_CURRENT_SOURCE_DIR}" | 65 | "${CMAKE_CURRENT_SOURCE_DIR}" |
| 66 | "${CMAKE_CURRENT_BINARY_DIR}") | 66 | "${CMAKE_CURRENT_BINARY_DIR}") |
| 67 | 67 | ||
| @@ -69,7 +69,7 @@ if(ZLIB_BLAST_BUILD_SHARED) | |||
| 69 | OR MSYS | 69 | OR MSYS |
| 70 | OR MINGW | 70 | OR MINGW |
| 71 | OR CYGWIN) | 71 | OR CYGWIN) |
| 72 | blast_findtestenv(blast-test) | 72 | blast_findtestenv(zlib_blast_blast-test) |
| 73 | endif( | 73 | endif( |
| 74 | MSVC | 74 | MSVC |
| 75 | OR MSYS | 75 | OR MSYS |
| @@ -79,7 +79,7 @@ if(ZLIB_BLAST_BUILD_SHARED) | |||
| 79 | endif(ZLIB_BLAST_BUILD_SHARED) | 79 | endif(ZLIB_BLAST_BUILD_SHARED) |
| 80 | 80 | ||
| 81 | if(ZLIB_BLAST_BUILD_STATIC) | 81 | if(ZLIB_BLAST_BUILD_STATIC) |
| 82 | add_library(blastStatic STATIC | 82 | add_library(zlib_blast_blastStatic STATIC |
| 83 | blast.c | 83 | blast.c |
| 84 | blast.h) | 84 | blast.h) |
| 85 | 85 | ||
diff --git a/contrib/iostream3/CMakeLists.txt b/contrib/iostream3/CMakeLists.txt index 65f19e5..c0dbdca 100644 --- a/contrib/iostream3/CMakeLists.txt +++ b/contrib/iostream3/CMakeLists.txt | |||
| @@ -33,7 +33,7 @@ if(WIN32 OR CYGWIN) | |||
| 33 | endif(WIN32 OR CYGWIN) | 33 | endif(WIN32 OR CYGWIN) |
| 34 | 34 | ||
| 35 | if(ZLIB_IOSTREAM3_BUILD_SHARED) | 35 | if(ZLIB_IOSTREAM3_BUILD_SHARED) |
| 36 | add_library(zlib-iostream3 SHARED | 36 | add_library(zlib_iostream3_iostreamv3 SHARED |
| 37 | zfstream.cc | 37 | zfstream.cc |
| 38 | zfstream.h) | 38 | zfstream.h) |
| 39 | 39 | ||
| @@ -72,7 +72,7 @@ if(ZLIB_IOSTREAM3_BUILD_SHARED) | |||
| 72 | endif(ZLIB_IOSTREAM3_BUILD_SHARED) | 72 | endif(ZLIB_IOSTREAM3_BUILD_SHARED) |
| 73 | 73 | ||
| 74 | if(ZLIB_IOSTREAM3_BUILD_STATIC) | 74 | if(ZLIB_IOSTREAM3_BUILD_STATIC) |
| 75 | add_library(zlib-iostream3Static STATIC | 75 | add_library(zlib_iostream3_iostreamv3Static STATIC |
| 76 | zfstream.cc | 76 | zfstream.cc |
| 77 | zfstream.h) | 77 | zfstream.h) |
| 78 | 78 | ||
diff --git a/contrib/puff/CMakeLists.txt b/contrib/puff/CMakeLists.txt index 0733d43..866d3f7 100644 --- a/contrib/puff/CMakeLists.txt +++ b/contrib/puff/CMakeLists.txt | |||
| @@ -33,7 +33,7 @@ if(WIN32 OR CYGWIN) | |||
| 33 | endif(WIN32 OR CYGWIN) | 33 | endif(WIN32 OR CYGWIN) |
| 34 | 34 | ||
| 35 | if(ZLIB_PUFF_BUILD_TESTING) | 35 | if(ZLIB_PUFF_BUILD_TESTING) |
| 36 | add_executable(bin-writer bin-writer.c) | 36 | add_executable(zlib_puff_bin-writer bin-writer.c) |
| 37 | 37 | ||
| 38 | if(${CMAKE_C_COMPILER_ID} STREQUAL "GNU" OR | 38 | if(${CMAKE_C_COMPILER_ID} STREQUAL "GNU" OR |
| 39 | ${CMAKE_C_COMPILER_ID} STREQUAL "Clang") | 39 | ${CMAKE_C_COMPILER_ID} STREQUAL "Clang") |
| @@ -62,7 +62,7 @@ if(ZLIB_PUFF_BUILD_TESTING) | |||
| 62 | endif(ZLIB_PUFF_BUILD_TESTING) | 62 | endif(ZLIB_PUFF_BUILD_TESTING) |
| 63 | 63 | ||
| 64 | if(ZLIB_PUFF_BUILD_SHARED) | 64 | if(ZLIB_PUFF_BUILD_SHARED) |
| 65 | add_library(zlib-puff SHARED | 65 | add_library(zlib_puff_puff SHARED |
| 66 | puff.c | 66 | puff.c |
| 67 | puff.h) | 67 | puff.h) |
| 68 | 68 | ||
| @@ -115,13 +115,16 @@ if(ZLIB_PUFF_BUILD_SHARED) | |||
| 115 | endif(ZLIB_PUFF_BUILD_SHARED) | 115 | endif(ZLIB_PUFF_BUILD_SHARED) |
| 116 | 116 | ||
| 117 | if(ZLIB_PUFF_BUILD_STATIC) | 117 | if(ZLIB_PUFF_BUILD_STATIC) |
| 118 | add_library(zlib-puffStatic STATIC | 118 | add_library(zlib_puff_puffStatic STATIC |
| 119 | puff.c | 119 | puff.c |
| 120 | puff.h) | 120 | puff.h) |
| 121 | 121 | ||
| 122 | add_library(PUFF::PUFFSTATIC ALIAS zlib_puff_puffStatic) | 122 | add_library(PUFF::PUFFSTATIC ALIAS zlib_puff_puffStatic) |
| 123 | |||
| 124 | set_target_properties(zlib_puff_puffStatic | ||
| 123 | PROPERTIES | 125 | PROPERTIES |
| 124 | OUTPUT_NAME zlib-puff${zlib_puff_static_suffix}) | 126 | EXPORT_NAME PUFFSTATIC |
| 127 | OUTPUT_NAME puff${zlib_puff_static_suffix}) | ||
| 125 | 128 | ||
| 126 | if(ZLIB_PUFF_BUILD_TESTING) | 129 | if(ZLIB_PUFF_BUILD_TESTING) |
| 127 | enable_testing() | 130 | enable_testing() |
