]> source.dussan.org Git - tigervnc.git/commitdiff
Installer needs to be built from the top-level CMake context.
authorDRC <dcommander@users.sourceforge.net>
Fri, 24 Jun 2011 05:26:43 +0000 (05:26 +0000)
committerDRC <dcommander@users.sourceforge.net>
Fri, 24 Jun 2011 05:26:43 +0000 (05:26 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4535 3789f03b-4d11-0410-bbf8-ca57d06f2519

CMakeLists.txt
win/CMakeLists.txt
win/installer/BuildInstaller.cmake [new file with mode: 0644]
win/installer/CMakeLists.txt [deleted file]

index 32917eaa6f0a41f5456cea3dbb1c4e92521b251b..081eaea17fb2e10be6a830892cfcb11a6ac8df32 100644 (file)
@@ -309,6 +309,7 @@ add_subdirectory(common)
 
 if(WIN32)
   add_subdirectory(win)
+  include(win/installer/BuildInstaller.cmake)
 else()
   # No interest in building x related parts on Apple
   if(NOT APPLE)
index 0bd5a3a4cca0fcaa951d2a74a40b59129a369cc0..61afe4d741d248eb307890fe7a179456980babd5 100644 (file)
@@ -12,5 +12,3 @@ if(BUILD_WINVNC)
 add_subdirectory(vncconfig)
 add_subdirectory(winvnc)
 endif()
-
-add_subdirectory(installer)
diff --git a/win/installer/BuildInstaller.cmake b/win/installer/BuildInstaller.cmake
new file mode 100644 (file)
index 0000000..dfb44e8
--- /dev/null
@@ -0,0 +1,39 @@
+# This file is included from the top-level CMakeLists.txt.  We just store it
+# here to avoid cluttering up that file.
+
+# Detect a 64-bit build and give that installer a different name
+if(CMAKE_SIZEOF_VOID_P MATCHES 8)
+  set(INST_NAME ${CMAKE_PROJECT_NAME}64-${VERSION})
+  set(INST_DEFS -DWIN64)
+else()
+  set(INST_NAME ${CMAKE_PROJECT_NAME}-${VERSION})
+endif()
+
+if(MSVC_IDE)
+  set(INSTALLERDIR "$(OutDir)")
+  set(BUILDDIRDEF "-DBUILD_DIR=${INSTALLERDIR}\\")
+else()
+  set(INSTALLERDIR .)
+  set(BUILDDIRDEF "-DBUILD_DIR=")
+endif()
+
+set(INST_DEPS vncviewer)
+
+if(BUILD_WINVNC)
+  set(INST_DEFS ${INST_DEFS} -DBUILD_WINVNC)
+  set(INST_DEPS ${INST_DEPS} winvnc4 wm_hooks vncconfig)
+endif()
+
+if(GNUTLS_FOUND)
+  set(INST_DEFS ${INST_DEFS} -DHAVE_GNUTLS)
+endif()
+
+configure_file(win/installer/tigervnc.iss.in tigervnc.iss)
+
+add_custom_target(installer
+  iscc -o${INSTALLERDIR} ${INST_DEFS} ${BUILDDIRDEF} -F${INST_NAME} tigervnc.iss
+  DEPENDS ${INST_DEPS}
+  SOURCES tigervnc.iss)
+
+install(FILES ${CMAKE_SOURCE_DIR}/win/README_BINARY.txt
+  ${CMAKE_SOURCE_DIR}/LICENCE.txt DESTINATION .)
diff --git a/win/installer/CMakeLists.txt b/win/installer/CMakeLists.txt
deleted file mode 100644 (file)
index 56f52a2..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-# Detect a 64-bit build and give that installer a different name
-if(CMAKE_SIZEOF_VOID_P MATCHES 8)
-  set(INST_NAME ${CMAKE_PROJECT_NAME}64-${VERSION})
-  set(INST_DEFS -DWIN64)
-else()
-  set(INST_NAME ${CMAKE_PROJECT_NAME}-${VERSION})
-endif()
-
-if(MSVC_IDE)
-  set(INSTALLERDIR "$(OutDir)")
-  set(BUILDDIRDEF "-DBUILD_DIR=${INSTALLERDIR}\\")
-else()
-  set(INSTALLERDIR .)
-  set(BUILDDIRDEF "-DBUILD_DIR=")
-endif()
-
-set(INST_DEPS vncviewer)
-
-if(BUILD_WINVNC)
-  set(INST_DEFS ${INST_DEFS} -DBUILD_WINVNC)
-  set(INST_DEPS ${INST_DEPS} winvnc4 wm_hooks vncconfig)
-endif()
-
-if(GNUTLS_FOUND)
-  set(INST_DEFS ${INST_DEFS} -DHAVE_GNUTLS)
-endif()
-
-configure_file(tigervnc.iss.in tigervnc.iss)
-
-add_custom_target(installer
-  iscc -o${INSTALLERDIR} ${INST_DEFS} ${BUILDDIRDEF} -F${INST_NAME} tigervnc.iss
-  DEPENDS ${INST_DEPS}
-  SOURCES tigervnc.iss)
-
-install(FILES ${CMAKE_SOURCE_DIR}/win/README_BINARY.txt
-  ${CMAKE_SOURCE_DIR}/LICENCE.txt DESTINATION .)