NOISSUE remove the MultiMC naming for the library

This commit is contained in:
Petr Mrázek 2021-10-10 21:44:58 +02:00
parent 3691d57d3a
commit b1a72ac0bb

View file

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.1)
project(MultiMC_quazip)
project(Launcher_quazip)
#### LIBRARY ####
find_package(ZLIB REQUIRED)
@ -42,15 +42,15 @@ if (Qt5_POSITION_INDEPENDENT_CODE)
SET(CMAKE_POSITION_INDEPENDENT_CODE ON)
endif()
add_library(MultiMC_quazip SHARED ${QUAZIP_SRC})
target_include_directories(MultiMC_quazip PUBLIC "quazip" "${CMAKE_CURRENT_BINARY_DIR}" PRIVATE ${ZLIB_INCLUDE_DIRS})
target_link_libraries(MultiMC_quazip Qt5::Core ${ZLIB_LIBRARIES})
target_compile_definitions(MultiMC_quazip PRIVATE "-DQUAZIP_BUILD")
set_target_properties(MultiMC_quazip PROPERTIES CXX_VISIBILITY_PRESET hidden VISIBILITY_INLINES_HIDDEN 1)
add_library(Launcher_quazip SHARED ${QUAZIP_SRC})
target_include_directories(Launcher_quazip PUBLIC "quazip" "${CMAKE_CURRENT_BINARY_DIR}" PRIVATE ${ZLIB_INCLUDE_DIRS})
target_link_libraries(Launcher_quazip Qt5::Core ${ZLIB_LIBRARIES})
target_compile_definitions(Launcher_quazip PRIVATE "-DQUAZIP_BUILD")
set_target_properties(Launcher_quazip PROPERTIES CXX_VISIBILITY_PRESET hidden VISIBILITY_INLINES_HIDDEN 1)
# Install it
install(
TARGETS MultiMC_quazip
TARGETS Launcher_quazip
RUNTIME DESTINATION ${LIBRARY_DEST_DIR}
LIBRARY DESTINATION ${LIBRARY_DEST_DIR}
)
@ -82,6 +82,6 @@ set(QUAZIP_TEST_SRC
qztest/testquazipnewinfo.h
)
add_executable(MultiMC_quazip_test ${QUAZIP_TEST_SRC})
target_link_libraries(MultiMC_quazip_test MultiMC_quazip Qt5::Network Qt5::Test)
add_test(NAME quazip_testsuite COMMAND MultiMC_quazip_test)
add_executable(Launcher_quazip_test ${QUAZIP_TEST_SRC})
target_link_libraries(Launcher_quazip_test Launcher_quazip Qt5::Network Qt5::Test)
add_test(NAME quazip_testsuite COMMAND Launcher_quazip_test)