Hello all<br>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 | <a href="http://www.zeroc.com">http://www.zeroc.com</a>) is installed, this package is a set of shared libraries, include files, and compilers for slice language.
<br><br>I need to be able of check if the slice compiler executable exists, and check the version with the -v argument of the compiler <br><br>Here is a pseudo code of what i trying to do<br><br>ICE_VERSION="3.2.2"
<br>ICE_FOUND="False"<br>#Search the slice2cpp compiler<br><br>SLICE2CPP = SEARCH_EXECUTABLE(slice2cpp /usr/bin)<br>if(SLICE2CPP)<br> if(SLICE2CPP -v == $ICE_VERSION)<br> ICE_FOUND="True"<br> endif
<br>endif<br><br>Any ideas for this task<br><br><br>