diff options
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1e4335ec3..adda32def 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,6 +44,7 @@ option(warnings-as-errors "All warnings are treated as errors." OFF) option(dpkg-buildflags "Add CFLAGS, CXXFLAGS, CPPFLAGS and LDFLAGS from dpkg-buildflags to the build flags." OFF) option(overlay "Build overlay." ON) +option(packaging "Build package." OFF) option(plugins "Build plugins." ON) # We support the "Debug" and "Release" configurations. @@ -95,3 +96,11 @@ endif() if(plugins AND client) add_subdirectory(plugins) endif() + +if(packaging) + if(WIN32) + file(COPY "${CMAKE_SOURCE_DIR}/scripts/Create-Win32InstallerMUI.ps1" DESTINATION ${CMAKE_BINARY_DIR}) + endif() + + include(cmake/packaging.cmake) +endif() |