Hello all
I'm new cmake user and need to write a module for test if a pacakage exists,
In my case i need to check If Ice (Internet Communication Engine |
http://www.zeroc.com) is installed, this package is a set of shared
libraries, include files, and compilers for slice language.
I need to be able of check if the slice compiler executable exists, and
check the version with the -v argument of the compiler
Here is a pseudo code of what i trying to do
ICE_VERSION="3.2.2"
ICE_FOUND="False"
#Search the slice2cpp compiler
SLICE2CPP = SEARCH_EXECUTABLE(slice2cpp /usr/bin)
if(SLICE2CPP)
if(SLICE2CPP -v == $ICE_VERSION)
ICE_FOUND="True"
endif
endif
Any ideas for this task
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake