mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-09-03 21:49:13 +00:00
This is probably very broken on macOS and Windows and will need a lot of work to complete fully.
28 lines
773 B
CMake
28 lines
773 B
CMake
cmake_minimum_required(VERSION 3.1)
|
|
project(iconfix)
|
|
|
|
find_package(Qt5Core REQUIRED QUIET)
|
|
find_package(Qt5Widgets REQUIRED QUIET)
|
|
|
|
set(ICONFIX_SOURCES
|
|
xdgicon.h
|
|
xdgicon.cpp
|
|
internal/qhexstring_p.h
|
|
internal/qiconloader.cpp
|
|
internal/qiconloader_p.h
|
|
)
|
|
|
|
add_library(Launcher_iconfix SHARED ${ICONFIX_SOURCES})
|
|
target_include_directories(Launcher_iconfix PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} "${CMAKE_CURRENT_BINARY_DIR}" )
|
|
|
|
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)
|
|
|
|
# Install it
|
|
install(
|
|
TARGETS Launcher_iconfix
|
|
RUNTIME DESTINATION ${LIBRARY_DEST_DIR}
|
|
LIBRARY DESTINATION ${LIBRARY_DEST_DIR}
|
|
) |