File tree 5 files changed +37
-2
lines changed
5 files changed +37
-2
lines changed Original file line number Diff line number Diff line change 1
1
AUTOMAKE_OPTIONS = subdir-objects
2
2
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}
3
- SUBDIRS = src test bench
3
+ SUBDIRS = src test bench bench/gui
4
4
dist_noinst_SCRIPTS = autogen.sh
Original file line number Diff line number Diff line change
1
+ /gen /
Original file line number Diff line number Diff line change
1
+ AM_CXXFLAGS = --std=c++11 -pedantic -Wall $(WX_CXXFLAGS )
2
+ LDADD = $(WX_LIBS )
3
+ bin_PROGRAMS = smvd
4
+
5
+ # Sparse Matrix View Designer
6
+ smvd_SOURCES = smvd.cpp gen/smvd_gui.cpp
Original file line number Diff line number Diff line change
1
+ #include < wx/wx.h>
2
+
3
+ class SmvdApp : public wxApp {
4
+ public:
5
+ virtual bool OnInit () override {
6
+ // TODO:
7
+ return true ;
8
+ }
9
+ };
10
+
11
+ IMPLEMENT_APP (SmvdApp)
Original file line number Diff line number Diff line change @@ -6,7 +6,24 @@ AM_INIT_AUTOMAKE([1.10 foreign -Wall no-define])
6
6
AC_PROG_CXX
7
7
LT_INIT
8
8
AC_CONFIG_HEADERS ( [ config.h] )
9
- AC_CONFIG_FILES ( [ Makefile src/Makefile test/Makefile bench/Makefile] )
9
+ AC_CONFIG_FILES ( [ Makefile src/Makefile test/Makefile bench/Makefile \
10
+ bench/gui/Makefile] )
11
+
12
+ # Check for wxWidgets version >= 3 (required for test/gui)
13
+ AM_OPTIONS_WXCONFIG
14
+ reqwx=3.0.0
15
+ AM_PATH_WXCONFIG($reqwx, wxWin=1)
16
+ if test "$wxWin" != 1; then
17
+ AC_MSG_ERROR ( [
18
+ wxWidgets must be installed on your system.
19
+
20
+ Please check that wx-config is in path, the directory where
21
+ wxWidgets libraries are installed (returned by
22
+ 'wx-config --libs' or 'wx-config --static --libs'
23
+ command) is in LD_LIBRARY_PATH or equivalent variable
24
+ and wxWidgets version is $reqwx or above.
25
+ ] )
26
+ fi
10
27
11
28
AC_LANG ( C++ )
12
29
AC_LINK_IFELSE (
You can’t perform that action at this time.
0 commit comments