mirror of
https://github.com/ashaduri/gsmartcontrol.git
synced 2026-09-24 21:05:38 +00:00
27 lines
836 B
CMake
27 lines
836 B
CMake
|
|
# Variables for nsis .in files
|
|
set(WINDOWS_SUFFIX "win32")
|
|
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|
set(WINDOWS_SUFFIX "win64")
|
|
endif()
|
|
configure_file("nsis/distribution.in.txt" "nsis/distribution.txt" ESCAPE_QUOTES @ONLY NEWLINE_STYLE DOS)
|
|
# configure_file("nsis/gsmartcontrol.in.nsi" "nsis/gsmartcontrol.nsi" ESCAPE_QUOTES @ONLY NEWLINE_STYLE DOS)
|
|
|
|
# NSIS helpers
|
|
if (WIN32)
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/nsis/distribution.txt" TYPE DOC)
|
|
|
|
# nsis file, only for cross-compilation
|
|
# if (NOT ${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows")
|
|
# install(FILES "${CMAKE_CURRENT_BINARY_DIR}/nsis/gsmartcontrol.nsi" DESTINATION .)
|
|
# endif()
|
|
endif()
|
|
|
|
|
|
# OBS Debian
|
|
#configure_file("obs_debian/changelog.in" "obs_debian/changelog" ESCAPE_QUOTES @ONLY)
|
|
|
|
# OBS RPM
|
|
#configure_file(obs_rpm/gsmartcontrol.in.spec obs_rpm/gsmartcontrol.spec)
|
|
|