File tree 9 files changed +55
-1
lines changed 9 files changed +55
-1
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,15 @@ endif()
76
76
list (APPEND CMAKE_MODULE_PATH "${SOURCE_DIR} " )
77
77
set (OPTIONAL_LIBRARIES)
78
78
79
+ ########################################################################
80
+ # GSL dependency
81
+ ########################################################################
82
+ find_package (gsl REQUIRED)
83
+ IF (GSL_FOUND)
84
+ ELSE (GSL_FOUND)
85
+ message ( FATAL_ERROR "gsl not found." )
86
+ ENDIF (GSL_FOUND)
87
+
79
88
########################################################################
80
89
# includes
81
90
########################################################################
Original file line number Diff line number Diff line change
1
+ ################################################################################
2
+ # THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
3
+ # Read the zproject/README.md for information about making permanent changes. #
4
+ ################################################################################
5
+
6
+ find_program (
7
+ GSL_BIN
8
+ gsl
9
+ )
10
+
11
+ include (FindPackageHandleStandardArgs)
12
+
13
+ find_package_handle_standard_args(
14
+ GSL
15
+ REQUIRED_VARS GSL_BIN
16
+ )
17
+ mark_as_advanced (
18
+ GSL_FOUND
19
+ )
20
+
21
+ ################################################################################
22
+ # THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
23
+ # Read the zproject/README.md for information about making permanent changes. #
24
+ ################################################################################
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ TESTS =
25
25
26
26
EXTRA_DIST = \
27
27
CMakeLists.txt \
28
+ Findgsl.cmake \
28
29
LICENSE \
29
30
README.txt \
30
31
README.md \
Original file line number Diff line number Diff line change @@ -21,6 +21,19 @@ CMAKE_OPTS+=("-DCMAKE_LIBRARY_PATH:PATH=${BUILD_PREFIX}/lib")
21
21
CMAKE_OPTS+=(" -DCMAKE_INCLUDE_PATH:PATH=${BUILD_PREFIX} /include" )
22
22
23
23
# Clone and build dependencies
24
+ git clone --quiet --depth 1 https://github.com/imagix/gsl gsl
25
+ cd gsl
26
+ git --no-pager log --oneline -n1
27
+ if [ -e autogen.sh ]; then
28
+ ./autogen.sh 2> /dev/null
29
+ fi
30
+ if [ -e buildconf ]; then
31
+ ./buildconf 2> /dev/null
32
+ fi
33
+ ./configure " ${CONFIG_OPTS[@]} "
34
+ make -j4
35
+ make install
36
+ cd ..
24
37
25
38
# Build and check this project
26
39
cd ../..
Original file line number Diff line number Diff line change 71
71
PREVIOUS_CFLAGS="${CFLAGS}"
72
72
PREVIOUS_LIBS="${LIBS}"
73
73
74
+ AC_CHECK_PROG ( HAVE_GSL , gsl , yes )
75
+ if test x"$HAVE_GSL" != x"yes" ; then
76
+ AC_MSG_ERROR ( [ Cannot find gsl] )
77
+ fi
74
78
75
79
CFLAGS="${PREVIOUS_CFLAGS}"
76
80
LIBS="${PREVIOUS_LIBS}"
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ Standards-Version: 3.9.7
17
17
Build-Depends: debhelper (>= 9),
18
18
pkg-config,
19
19
dh-autoreconf,
20
+ generator-scripting-language,
20
21
Build-Depends-Indep: asciidoc,
21
22
xmlto
22
23
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ Architecture: any
7
7
Build-Depends: debhelper (>= 9),
8
8
pkg-config,
9
9
dh-autoreconf,
10
+ generator-scripting-language,
10
11
Build-Depends-Indep: asciidoc,
11
12
xmlto
12
13
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ BuildRequires: autoconf
29
29
BuildRequires: libtool
30
30
BuildRequires: pkgconfig
31
31
BuildRequires: xmlto
32
+ BuildRequires: generator-scripting-language
32
33
BuildRoot: %{_tmppath }/%{name }-%{version }-build
33
34
34
35
%description
Original file line number Diff line number Diff line change 2
2
# THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
3
3
# Read the zproject/README.md for information about making permanent changes. #
4
4
################################################################################
5
- program_libs =
5
+ program_libs = ${project_libs}
6
6
7
7
# Programs need to link the c++ runtime if everything was compiled statically.
8
8
if !ENABLE_SHARED
You can’t perform that action at this time.
0 commit comments