Merge pull request #143 from Scrumplex/refactor-link-nbtpp-static
This commit is contained in:
commit
70a055bc27
@ -260,11 +260,9 @@ endif()
|
|||||||
include(ExternalProject)
|
include(ExternalProject)
|
||||||
set_directory_properties(PROPERTIES EP_BASE External)
|
set_directory_properties(PROPERTIES EP_BASE External)
|
||||||
|
|
||||||
option(NBT_BUILD_SHARED "Build NBT shared library" ON)
|
option(NBT_BUILD_SHARED "Build NBT shared library" OFF)
|
||||||
option(NBT_USE_ZLIB "Build NBT library with zlib support" OFF)
|
option(NBT_USE_ZLIB "Build NBT library with zlib support" OFF)
|
||||||
option(NBT_BUILD_TESTS "Build NBT library tests" OFF) #FIXME: fix unit tests.
|
option(NBT_BUILD_TESTS "Build NBT library tests" OFF) #FIXME: fix unit tests.
|
||||||
set(NBT_NAME Launcher_nbt++)
|
|
||||||
set(NBT_DEST_DIR ${LIBRARY_DEST_DIR})
|
|
||||||
add_subdirectory(libraries/libnbtplusplus)
|
add_subdirectory(libraries/libnbtplusplus)
|
||||||
|
|
||||||
add_subdirectory(libraries/systeminfo) # system information library
|
add_subdirectory(libraries/systeminfo) # system information library
|
||||||
|
@ -941,7 +941,7 @@ add_library(Launcher_logic STATIC ${LOGIC_SOURCES} ${LAUNCHER_SOURCES} ${LAUNCHE
|
|||||||
target_link_libraries(Launcher_logic
|
target_link_libraries(Launcher_logic
|
||||||
systeminfo
|
systeminfo
|
||||||
Launcher_classparser
|
Launcher_classparser
|
||||||
${NBT_NAME}
|
nbt++
|
||||||
${ZLIB_LIBRARIES}
|
${ZLIB_LIBRARIES}
|
||||||
optional-bare
|
optional-bare
|
||||||
tomlc99
|
tomlc99
|
||||||
@ -959,7 +959,7 @@ target_link_libraries(Launcher_logic
|
|||||||
Launcher_iconfix
|
Launcher_iconfix
|
||||||
QuaZip::QuaZip
|
QuaZip::QuaZip
|
||||||
hoedown
|
hoedown
|
||||||
Launcher_rainbow
|
PolyMC_rainbow
|
||||||
LocalPeer
|
LocalPeer
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -12,17 +12,9 @@ internal/qiconloader.cpp
|
|||||||
internal/qiconloader_p.h
|
internal/qiconloader_p.h
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(Launcher_iconfix SHARED ${ICONFIX_SOURCES})
|
add_library(Launcher_iconfix ${ICONFIX_SOURCES})
|
||||||
target_include_directories(Launcher_iconfix PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} "${CMAKE_CURRENT_BINARY_DIR}" )
|
target_include_directories(Launcher_iconfix PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} "${CMAKE_CURRENT_BINARY_DIR}" )
|
||||||
|
|
||||||
target_link_libraries(Launcher_iconfix Qt5::Core Qt5::Widgets)
|
target_link_libraries(Launcher_iconfix Qt5::Core Qt5::Widgets)
|
||||||
|
|
||||||
set_target_properties(Launcher_iconfix PROPERTIES CXX_VISIBILITY_PRESET hidden VISIBILITY_INLINES_HIDDEN 1)
|
|
||||||
generate_export_header(Launcher_iconfix)
|
generate_export_header(Launcher_iconfix)
|
||||||
|
|
||||||
# Install it
|
|
||||||
install(
|
|
||||||
TARGETS Launcher_iconfix
|
|
||||||
RUNTIME DESTINATION ${LIBRARY_DEST_DIR}
|
|
||||||
LIBRARY DESTINATION ${LIBRARY_DEST_DIR}
|
|
||||||
)
|
|
@ -9,14 +9,14 @@ src/rainbow.cpp
|
|||||||
)
|
)
|
||||||
|
|
||||||
add_definitions(-DRAINBOW_LIBRARY)
|
add_definitions(-DRAINBOW_LIBRARY)
|
||||||
add_library(Launcher_rainbow SHARED ${RAINBOW_SOURCES})
|
add_library(PolyMC_rainbow SHARED ${RAINBOW_SOURCES})
|
||||||
target_include_directories(Launcher_rainbow PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
target_include_directories(PolyMC_rainbow PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||||
|
|
||||||
target_link_libraries(Launcher_rainbow Qt5::Core Qt5::Gui)
|
target_link_libraries(PolyMC_rainbow Qt5::Core Qt5::Gui)
|
||||||
|
|
||||||
# Install it
|
# Install it
|
||||||
install(
|
install(
|
||||||
TARGETS Launcher_rainbow
|
TARGETS PolyMC_rainbow
|
||||||
RUNTIME DESTINATION ${LIBRARY_DEST_DIR}
|
RUNTIME DESTINATION ${LIBRARY_DEST_DIR}
|
||||||
LIBRARY DESTINATION ${LIBRARY_DEST_DIR}
|
LIBRARY DESTINATION ${LIBRARY_DEST_DIR}
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user