Servatrice logo
+ added resources needed for servatrice logo ~ updated CMakeLists.txt to include the new resources
This commit is contained in:
parent
006451f402
commit
5b50aa0f0a
7 changed files with 802 additions and 1 deletions
|
@ -17,6 +17,19 @@ SET(servatrice_SOURCES
|
||||||
${VERSION_STRING_CPP}
|
${VERSION_STRING_CPP}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set(servatrice_RESOURCES servatrice.qrc)
|
||||||
|
|
||||||
|
if(WIN32)
|
||||||
|
set(servatrice_SOURCES ${servatrice_SOURCES} servatrice.rc)
|
||||||
|
endif(WIN32)
|
||||||
|
|
||||||
|
|
||||||
|
if(APPLE)
|
||||||
|
set(MACOSX_BUNDLE_ICON_FILE appicon.icns)
|
||||||
|
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/resources/appicon.icns PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
|
||||||
|
set(servatrice_SOURCES ${servatrice_SOURCES} ${CMAKE_CURRENT_SOURCE_DIR}/resources/appicon.icns)
|
||||||
|
ENDIF(APPLE)
|
||||||
|
|
||||||
set(SERVATRICE_LIBS)
|
set(SERVATRICE_LIBS)
|
||||||
|
|
||||||
# Qt4 stuff
|
# Qt4 stuff
|
||||||
|
@ -32,6 +45,7 @@ if(Qt4_FOUND)
|
||||||
# Libgcrypt is required only with Qt4 to support SHA512 hashing
|
# Libgcrypt is required only with Qt4 to support SHA512 hashing
|
||||||
FIND_PACKAGE(Libgcrypt REQUIRED)
|
FIND_PACKAGE(Libgcrypt REQUIRED)
|
||||||
INCLUDE_DIRECTORIES(${LIBGCRYPT_INCLUDE_DIR})
|
INCLUDE_DIRECTORIES(${LIBGCRYPT_INCLUDE_DIR})
|
||||||
|
QT4_ADD_RESOURCES(servatrice_RESOURCES_RCC ${servatrice_RESOURCES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# qt5 stuff
|
# qt5 stuff
|
||||||
|
@ -53,6 +67,8 @@ if(Qt5Widgets_FOUND)
|
||||||
list(APPEND SERVATRICE_LIBS Sql)
|
list(APPEND SERVATRICE_LIBS Sql)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
QT5_ADD_RESOURCES(servatrice_RESOURCES_RCC ${servatrice_RESOURCES})
|
||||||
|
|
||||||
# guess plugins and libraries directory
|
# guess plugins and libraries directory
|
||||||
set(QT_PLUGINS_DIR "${Qt5Widgets_DIR}/../../../plugins")
|
set(QT_PLUGINS_DIR "${Qt5Widgets_DIR}/../../../plugins")
|
||||||
get_target_property(QT_LIBRARY_DIR Qt5::Core LOCATION)
|
get_target_property(QT_LIBRARY_DIR Qt5::Core LOCATION)
|
||||||
|
@ -68,7 +84,7 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/../common)
|
||||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
|
||||||
|
|
||||||
# Build servatrice binary and link it
|
# Build servatrice binary and link it
|
||||||
ADD_EXECUTABLE(servatrice MACOSX_BUNDLE ${servatrice_SOURCES} ${servatrice_MOC_SRCS})
|
ADD_EXECUTABLE(servatrice MACOSX_BUNDLE ${servatrice_SOURCES} ${servatrice_RESOURCES_RCC} ${servatrice_MOC_SRCS})
|
||||||
|
|
||||||
if(Qt4_FOUND)
|
if(Qt4_FOUND)
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
|
|
BIN
servatrice/resources/appicon.icns
Normal file
BIN
servatrice/resources/appicon.icns
Normal file
Binary file not shown.
BIN
servatrice/resources/appicon.ico
Normal file
BIN
servatrice/resources/appicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 361 KiB |
BIN
servatrice/resources/cockatrice.png
Normal file
BIN
servatrice/resources/cockatrice.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
779
servatrice/resources/cockatrice.svg
Normal file
779
servatrice/resources/cockatrice.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 43 KiB |
5
servatrice/servatrice.qrc
Normal file
5
servatrice/servatrice.qrc
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<RCC>
|
||||||
|
<qresource prefix="/" >
|
||||||
|
<file alias="resources/appicon.svg">resources/cockatrice.svg</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
1
servatrice/servatrice.rc
Normal file
1
servatrice/servatrice.rc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
ID1_ICON1 ICON DISCARDABLE "resources/appicon.ico"
|
Loading…
Reference in a new issue