1 # this is a place holder if java needed flags for javac they would go here.
2 IF(NOT CMAKE_Java_CREATE_STATIC_LIBRARY)
3 SET(CMAKE_Java_CREATE_STATIC_LIBRARY
4 "<CMAKE_Java_ARCHIVE> -cf <TARGET> *.class")
5 # should be this <OBJECTS> but compling a java file can create more than one .class file
6 # so for now get all of them
7 ENDIF(NOT CMAKE_Java_CREATE_STATIC_LIBRARY)
8 # compile a Java file into an object file
9 IF(NOT CMAKE_Java_COMPILE_OBJECT)
10 SET(CMAKE_Java_COMPILE_OBJECT
11 "<CMAKE_Java_COMPILER> <FLAGS> <SOURCE> -d <CMAKE_CURRENT_BINARY_DIR>")
12 ENDIF(NOT CMAKE_Java_COMPILE_OBJECT)
14 # set java include flag option and the separator for multiple include paths
15 SET(CMAKE_INCLUDE_FLAG_Java "-classpath ")
16 IF(WIN32 AND NOT CYGWIN)
17 SET(CMAKE_INCLUDE_FLAG_SEP_Java ";")
18 ELSE(WIN32 AND NOT CYGWIN)
19 SET(CMAKE_INCLUDE_FLAG_SEP_Java ":")
20 ENDIF(WIN32 AND NOT CYGWIN)