2015-09-29 00:23:46 +05:30
|
|
|
cmake_minimum_required(VERSION 3.1)
|
2015-03-02 02:50:57 +05:30
|
|
|
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
|
|
|
|
)
|
|
|
|
|
2021-10-13 05:29:25 +05:30
|
|
|
add_library(Launcher_iconfix SHARED ${ICONFIX_SOURCES})
|
|
|
|
target_include_directories(Launcher_iconfix PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} "${CMAKE_CURRENT_BINARY_DIR}" )
|
2015-09-29 00:23:46 +05:30
|
|
|
|
2021-10-13 05:29:25 +05:30
|
|
|
target_link_libraries(Launcher_iconfix Qt5::Core Qt5::Widgets)
|
2017-05-05 13:13:20 +05:30
|
|
|
|
2021-10-13 05:29:25 +05:30
|
|
|
set_target_properties(Launcher_iconfix PROPERTIES CXX_VISIBILITY_PRESET hidden VISIBILITY_INLINES_HIDDEN 1)
|
|
|
|
generate_export_header(Launcher_iconfix)
|
2018-01-22 08:58:07 +05:30
|
|
|
|
|
|
|
# Install it
|
2018-01-27 07:12:27 +05:30
|
|
|
install(
|
2021-10-13 05:29:25 +05:30
|
|
|
TARGETS Launcher_iconfix
|
2018-07-15 18:21:05 +05:30
|
|
|
RUNTIME DESTINATION ${LIBRARY_DEST_DIR}
|
|
|
|
LIBRARY DESTINATION ${LIBRARY_DEST_DIR}
|
2018-01-27 07:12:27 +05:30
|
|
|
)
|