1# Determine license file name
2if (BUILD_ENTERPRISE)
3  SET (license license/ee-license.txt)
4  SET (license_nocr license/ee-license-no-newlines.txt)
5  SET (ns_server_license EE_subscription_license_agreement.txt)
6  SET (license_html license/ee-license.html)
7ELSE (BUILD_ENTERPRISE)
8  SET (license license/ce-license.txt)
9  SET (license_nocr license/ce-license-no-newlines.txt)
10  SET (ns_server_license CE_license_agreement.txt)
11  SET (license_html license/ce-license.html)
12ENDIF (BUILD_ENTERPRISE)
13
14# Install license and README files
15INSTALL (FILES ${license} RENAME "LICENSE.txt" DESTINATION .)
16INSTALL (FILES ${license_nocr} RENAME "${ns_server_license}" DESTINATION lib/ns_server/erlang/lib/ns_server/priv/public/ui)
17INSTALL (FILES readme/README.txt DESTINATION .)
18
19IF (APPLE)
20  INSTALL (FILES ${license_html} RENAME "Credits.html" DESTINATION .)
21ENDIF (APPLE)
22