add options to not install demo songs/ins
This commit is contained in:
parent
2e41d117d7
commit
f2b6f854a9
|
@ -66,6 +66,8 @@ option(SYSTEM_RTMIDI "Use a system-installed version of RtMidi instead of the ve
|
||||||
option(SYSTEM_ZLIB "Use a system-installed version of zlib instead of the vendored one" OFF)
|
option(SYSTEM_ZLIB "Use a system-installed version of zlib instead of the vendored one" OFF)
|
||||||
option(SYSTEM_SDL2 "Use a system-installed version of SDL2 instead of the vendored one" ${SYSTEM_SDL2_DEFAULT})
|
option(SYSTEM_SDL2 "Use a system-installed version of SDL2 instead of the vendored one" ${SYSTEM_SDL2_DEFAULT})
|
||||||
option(WARNINGS_ARE_ERRORS "Whether warnings in furnace's C++ code should be treated as errors" OFF)
|
option(WARNINGS_ARE_ERRORS "Whether warnings in furnace's C++ code should be treated as errors" OFF)
|
||||||
|
option(WITH_DEMOS "Install demo songs" ON)
|
||||||
|
option(WITH_INSTRUMENTS "Install instruments" ON)
|
||||||
|
|
||||||
set(DEPENDENCIES_INCLUDE_DIRS "")
|
set(DEPENDENCIES_INCLUDE_DIRS "")
|
||||||
|
|
||||||
|
@ -709,8 +711,12 @@ if (NOT ANDROID OR TERMUX)
|
||||||
install(FILES res/furnace.appdata.xml DESTINATION ${CMAKE_INSTALL_DATADIR}/metainfo)
|
install(FILES res/furnace.appdata.xml DESTINATION ${CMAKE_INSTALL_DATADIR}/metainfo)
|
||||||
install(DIRECTORY papers DESTINATION ${CMAKE_INSTALL_DOCDIR})
|
install(DIRECTORY papers DESTINATION ${CMAKE_INSTALL_DOCDIR})
|
||||||
install(FILES LICENSE DESTINATION ${CMAKE_INSTALL_DATADIR}/licenses/furnace)
|
install(FILES LICENSE DESTINATION ${CMAKE_INSTALL_DATADIR}/licenses/furnace)
|
||||||
|
if (WITH_DEMOS)
|
||||||
install(DIRECTORY demos DESTINATION ${CMAKE_INSTALL_DATADIR}/furnace)
|
install(DIRECTORY demos DESTINATION ${CMAKE_INSTALL_DATADIR}/furnace)
|
||||||
|
endif()
|
||||||
|
if (WITH_INSTRUMENTS)
|
||||||
install(DIRECTORY instruments DESTINATION ${CMAKE_INSTALL_DATADIR}/furnace)
|
install(DIRECTORY instruments DESTINATION ${CMAKE_INSTALL_DATADIR}/furnace)
|
||||||
|
endif()
|
||||||
foreach(num 16 32 64 128 256 512)
|
foreach(num 16 32 64 128 256 512)
|
||||||
set(res ${num}x${num})
|
set(res ${num}x${num})
|
||||||
install(FILES res/icon.iconset/icon_${res}.png RENAME furnace.png DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/${res}/apps)
|
install(FILES res/icon.iconset/icon_${res}.png RENAME furnace.png DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/${res}/apps)
|
||||||
|
|
|
@ -203,6 +203,8 @@ Available options:
|
||||||
| `SYSTEM_ZLIB` | `OFF` | Use a system-installed version of zlib instead of the vendored one |
|
| `SYSTEM_ZLIB` | `OFF` | Use a system-installed version of zlib instead of the vendored one |
|
||||||
| `SYSTEM_SDL2` | `OFF` | Use a system-installed version of SDL2 instead of the vendored one |
|
| `SYSTEM_SDL2` | `OFF` | Use a system-installed version of SDL2 instead of the vendored one |
|
||||||
| `WARNINGS_ARE_ERRORS` | `OFF` (but consider enabling this & reporting any errors that arise from it!) | Whether warnings in furnace's C++ code should be treated as errors |
|
| `WARNINGS_ARE_ERRORS` | `OFF` (but consider enabling this & reporting any errors that arise from it!) | Whether warnings in furnace's C++ code should be treated as errors |
|
||||||
|
| `WITH_DEMOS` | `ON` | Install demo songs on `make install` |
|
||||||
|
| `WITH_INSTRUMENTS` | `ON` | Install demo instruments on `make install` |
|
||||||
|
|
||||||
## console usage
|
## console usage
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue