]> source.dussan.org Git - tigervnc.git/commitdiff
[Development] Generate resdefs.h from resdefs.h.cmake.in in cmake builds.
authorAdam Tkac <atkac@redhat.com>
Thu, 25 Nov 2010 13:37:17 +0000 (13:37 +0000)
committerAdam Tkac <atkac@redhat.com>
Thu, 25 Nov 2010 13:37:17 +0000 (13:37 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4205 3789f03b-4d11-0410-bbf8-ca57d06f2519

win/CMakeLists.txt
win/resdefs.h.cmake.in [new file with mode: 0644]

index 1fa02c7fc2f7c4678a80ab5a7d8b36fd60321b9b..c034f6f6d4bdc8023b3452a9b2dcc405f552a7a4 100644 (file)
@@ -2,7 +2,7 @@ add_definitions(-D_WIN32_IE=0x0500 -D_WIN32_WINNT=0x0500)
 
 include_directories(${CMAKE_SOURCE_DIR}/common ${CMAKE_SOURCE_DIR}/win)
 
-configure_file(resdefs.h.in ${CMAKE_CURRENT_BINARY_DIR}/resdefs.h)
+configure_file(resdefs.h.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/resdefs.h)
 
 add_subdirectory(rfb_win32)
 add_subdirectory(vncviewer)
diff --git a/win/resdefs.h.cmake.in b/win/resdefs.h.cmake.in
new file mode 100644 (file)
index 0000000..b61db53
--- /dev/null
@@ -0,0 +1,4 @@
+#define __VERSIONSTR "@VERSION@\0"
+#define __RCVERSION @RCVERSION@
+#define __RCVERSIONSTR "@RCVERSION@\0"
+#cmakedefine WIN64