About cmake construction
we need two types of files,one is like 'findlib.cmake' ,the other is 'cmakelists.txt'.
the first one is used to find some lib file or some head file,the second one
tell us the relation in all the directory,and make a show of use of some file(
eg. 'ADD_EXECUTABLE(function_name src)' means to generate an executable file).
About cmake useage
step
cmake -->[./configure-->]make-->make install
tips
if you find makefile after cmake,you may jump over the second step,sometimes we may
set the setup directory at the second step.
eg. cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/ /setupsrc
http://www.oracle.com/technetwork/java/javase/downloads/index.html