move cmake modules to a modules/ subdir

This commit is contained in:
Benoit Jacob
2007-06-07 06:32:53 +00:00
parent 6fe6a81839
commit e30e7d7bcd
9 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
INCLUDE(CheckCXXSourceCompiles)
MACRO (CHECK_COMPLEX_MATH1 _RESULT)
SET(_CHECK_COMPLEX_MATH1_SOURCE_CODE "
#include<complex>
using namespace std;
int main(int argc, char *argv[])
{
complex<double> x(1.0, 1.0), y(1.0, 1.0);
cos(x); cosh(x); exp(x); log(x); pow(x,1); pow(x,double(2.0));
pow(x, y); pow(double(2.0), x); sin(x); sinh(x); sqrt(x); tan(x); tanh(x);
return 0;
}
")
CHECK_CXX_SOURCE_COMPILES("${_CHECK_COMPLEX_MATH1_SOURCE_CODE}" ${_RESULT})
ENDMACRO (CHECK_COMPLEX_MATH1)