cmake_minimum_required(VERSION 2.8)
project(tigervnc-java Java)
-set(VERSION 1.2.80)
+if(NOT VERSION)
+ set(VERSION 1.2.80)
+endif()
find_package(Java)
set(JAVA_SRCDIR ${CMAKE_CURRENT_SOURCE_DIR}/${CLASSPATH})
set(JAVA_BINDIR ${CMAKE_CURRENT_BINARY_DIR}/${CLASSPATH})
+if(NOT BUILD)
+ execute_process(COMMAND "date" "+%Y%m%d" OUTPUT_VARIABLE BUILD)
+endif()
execute_process(COMMAND "date" "+%b %d %Y" OUTPUT_VARIABLE JAVA_DATE)
execute_process(COMMAND "date" "+%H:%M:%S" OUTPUT_VARIABLE JAVA_TIME)
string(REGEX REPLACE "\n" "" JAVA_DATE ${JAVA_DATE})
string(REGEX REPLACE "\n" "" JAVA_TIME ${JAVA_TIME})
+string(REGEX REPLACE "\n" "" BUILD ${BUILD})
set(JAVA_CLASSNAMES
CConn
{
public static final String aboutText = new String("TigerVNC Java Viewer v%s (%s)%n"+
"Built on %s at %s%n"+
- "Copyright (C) 1999-2011 TigerVNC Team and many others (see README.txt)%n"+
+ "Copyright (C) 1999-2012 TigerVNC Team and many others (see README.txt)%n"+
"See http://www.tigervnc.org for information on TigerVNC.");
public static String version = null;