Skip to content

Commit 4c6df02

Browse files
committed
install license files
1 parent 0ea34c2 commit 4c6df02

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,12 @@ install(FILES
235235
${PROJECT_SOURCE_DIR}/src/soplex/external/fmt/ranges.h
236236
DESTINATION include/soplex/external/fmt)
237237

238+
# TODO this is necessary only if ZLIB_FOUND?
238239
install(FILES
239240
${PROJECT_SOURCE_DIR}/src/soplex/external/zstr/zstr.hpp
240241
${PROJECT_SOURCE_DIR}/src/soplex/external/zstr/strict_fstream.hpp
241242
DESTINATION include/soplex/external/zstr)
243+
install(FILES ${PROJECT_SOURCE_DIR}/src/soplex/external/zstr/License.txt DESTINATION ${CMAKE_INSTALL_DATADIR}/licenses/soplex/zstr)
242244

243245
# install the binary and the library to appropriate lcoations and add them to an export group
244246
install(TARGETS soplex libsoplex libsoplex-pic libsoplexshared EXPORT soplex-targets
@@ -251,6 +253,10 @@ if(MSVC)
251253
install(FILES $<TARGET_PDB_FILE:libsoplexshared> $<TARGET_PDB_FILE:soplex> DESTINATION ${CMAKE_INSTALL_BINDIR} OPTIONAL)
252254
endif()
253255

256+
# install license files of soplex and fmt
257+
install(FILES ${PROJECT_SOURCE_DIR}/LICENSE DESTINATION ${CMAKE_INSTALL_DATADIR}/licenses/soplex)
258+
install(FILES ${PROJECT_SOURCE_DIR}/src/soplex/external/fmt/LICENSE.rst DESTINATION ${CMAKE_INSTALL_DATADIR}/licenses/soplex/fmt)
259+
254260
# Add library targets to the build-tree export set
255261
export(TARGETS libsoplex libsoplex-pic libsoplexshared
256262
FILE "${CMAKE_BINARY_DIR}/soplex-targets.cmake")

0 commit comments

Comments
 (0)