Permalink
Browse files

First Perl test succeeded

  • Loading branch information...
pjotrp committed Apr 5, 2009
1 parent 227c53a commit f0bd9e4de067e0897525b03d58aa601844fc7fc2
@@ -1,8 +1,8 @@
-# Module CMake file - builds GSL library for ASciLib
+# Module CMake file - builds GSL library for ASciLib (A Science Library)
cmake_minimum_required(VERSION 2.6)
-PROJECT(ASciLib_GSL)
+PROJECT(ASCILIB_GSL)
IF(NOT BUILD_LIBS)
# Building in a local module: Set the module search path manually
@@ -12,9 +12,9 @@ IF(NOT BUILD_LIBS)
ENDIF(NOT IS_DIRECTORY ${CMAKE_MODULE_PATH})
ENDIF(NOT BUILD_LIBS)
-FIND_PACKAGE(ASciLib)
+FIND_PACKAGE(Map)
-SET(LIBNAME ascilib_gsl-${ASCILIB_VERSION}) # shared library name
+SET(LIBNAME ${MAP_projectname}_gsl-${MAP_VERSION}) # shared library name
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ../build)
@@ -23,6 +23,7 @@ INCLUDE_DIRECTORIES(./gsl)
ADD_LIBRARY(${LIBNAME} SHARED
../../../../contrib/gsl/statistics/minmax.c
+ ../../../../contrib/gsl/statistics/mean.c
)
# ---- The following may be required for OSX
Submodule math--gsl updated from dc7f0e to fdc56e
@@ -1,3 +1,3 @@
-%module gsl
+%module gsl
%include ../../gsl_common.i
@@ -0,0 +1,6 @@
+use ascilib::gsl;
+
+my $result = gsl::gsl_stats_mean([3,4,5,7],1,4);
+print "returns $result!\n";
+
+exit ($result != 4.75);

0 comments on commit f0bd9e4

Please sign in to comment.