Preference Packs are collections of preferences that can be applied en mass to the user's current setup. Any preference that can be stored in user.cfg can be stored in a preference pack, and they are designed to be easy to distribute. Support is also added for saving a subset of current preferences into a new preference pack in order to facilitate easy creation of new "themes", etc.
28 lines
585 B
CMake
28 lines
585 B
CMake
|
|
SET(PreferencePacks_Files
|
|
"package.xml"
|
|
)
|
|
|
|
SET(PreferencePacks_Directories
|
|
"FreeCAD Classic Colors"
|
|
)
|
|
|
|
ADD_CUSTOM_TARGET(PreferencePacks_data ALL
|
|
SOURCES ${PreferencePacks_Files} ${PreferencePacks_Directories}
|
|
)
|
|
|
|
FILE(COPY ${PreferencePacks_Files} ${PreferencePacks_Directories} DESTINATION "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/Gui/PreferencePacks")
|
|
|
|
INSTALL(
|
|
FILES
|
|
${PreferencePacks_Files}
|
|
DESTINATION
|
|
${CMAKE_INSTALL_DATADIR}/Gui/PreferencePacks
|
|
)
|
|
|
|
INSTALL(
|
|
DIRECTORY
|
|
${PreferencePacks_Directories}
|
|
DESTINATION
|
|
${CMAKE_INSTALL_DATADIR}/Gui/PreferencePacks
|
|
) |