From: adv Date: Fri, 19 Feb 2010 15:49:46 +0000 (+0000) Subject: Improve build system: install each module's header files to the sub-directory of... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f87024312bf4963a8c1b1fd4b49aedff8676488c;p=samples%2Fsierpinsky.git Improve build system: install each module's header files to the sub-directory of ${prefix}/include/salome/${module_name} --- diff --git a/adm_local/unix/config_files/check_SIERPINSKY.m4 b/adm_local/unix/config_files/check_SIERPINSKY.m4 index 1428bf2..c34789a 100755 --- a/adm_local/unix/config_files/check_SIERPINSKY.m4 +++ b/adm_local/unix/config_files/check_SIERPINSKY.m4 @@ -61,7 +61,7 @@ if test -f ${SIERPINSKY_DIR}/lib${LIB_LOCATION_SUFFIX}/salome/libSIERPINSKY.so fi SIERPINSKY_LDFLAGS=-L${SIERPINSKY_ROOT_DIR}/lib${LIB_LOCATION_SUFFIX}/salome - SIERPINSKY_CXXFLAGS=-I${SIERPINSKY_ROOT_DIR}/include/salome + SIERPINSKY_CXXFLAGS="-I${SIERPINSKY_ROOT_DIR}/include/salome -I${SIERPINSKY_ROOT_DIR}/include/salome/skel" AC_SUBST(SIERPINSKY_ROOT_DIR) AC_SUBST(SIERPINSKY_LDFLAGS) diff --git a/adm_local/unix/make_common_starter.am b/adm_local/unix/make_common_starter.am index a784f4e..e3b603c 100644 --- a/adm_local/unix/make_common_starter.am +++ b/adm_local/unix/make_common_starter.am @@ -31,7 +31,8 @@ AM_CPPFLAGS = @KERNEL_CXXFLAGS@ -include SALOMEconfig.h # ============================================================ # Standard directory for installation # -salomeincludedir = $(includedir)/salome +salomeincludedir = $(includedir)/salome/@MODULE_NAME@ +salomeskeldir = $(includedir)/salome/skel libdir = $(prefix)/lib@LIB_LOCATION_SUFFIX@/salome bindir = $(prefix)/bin/salome salomescriptdir = $(bindir) diff --git a/idl/Makefile.am b/idl/Makefile.am index f7aadcd..93d8852 100644 --- a/idl/Makefile.am +++ b/idl/Makefile.am @@ -38,7 +38,7 @@ nodist_libSalomeIDLSIERPINSKY_la_SOURCES = \ SierpinskyDynSK.cc: SierpinskySK.cc # header files must be exported: other modules have to use this library -nodist_salomeinclude_HEADERS = $(BASEIDL_FILES:%.idl=%.hh) +nodist_salomeskel_HEADERS = $(BASEIDL_FILES:%.idl=%.hh) libSalomeIDLSIERPINSKY_la_CPPFLAGS = \ $(KERNEL_CXXFLAGS) \ diff --git a/src/Sierpinsky/SIERPINSKY_Gen_i.cxx b/src/Sierpinsky/SIERPINSKY_Gen_i.cxx index 8372c0d..9534ff9 100644 --- a/src/Sierpinsky/SIERPINSKY_Gen_i.cxx +++ b/src/Sierpinsky/SIERPINSKY_Gen_i.cxx @@ -23,7 +23,7 @@ /////////////////////////////////////////////////////////// // #include "SIERPINSKY_Gen_i.hxx" -#include +#include #include using namespace MED; diff --git a/src/Sierpinsky/SIERPINSKY_Gen_i.hxx b/src/Sierpinsky/SIERPINSKY_Gen_i.hxx index e82fa80..c368eee 100644 --- a/src/Sierpinsky/SIERPINSKY_Gen_i.hxx +++ b/src/Sierpinsky/SIERPINSKY_Gen_i.hxx @@ -25,7 +25,7 @@ #ifndef __SIERPINSKY_GEN_I_HXX #define __SIERPINSKY_GEN_I_HXX -#include "SALOME_Component_i.hxx" +#include #include #include CORBA_SERVER_HEADER(Sierpinsky) diff --git a/src/SierpinskyGUI/SierpinskyGUI.cxx b/src/SierpinskyGUI/SierpinskyGUI.cxx index bb0a04f..6157ab5 100644 --- a/src/SierpinskyGUI/SierpinskyGUI.cxx +++ b/src/SierpinskyGUI/SierpinskyGUI.cxx @@ -24,12 +24,12 @@ // #include "SierpinskyGUI.h" -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include /*! diff --git a/src/SierpinskyGUI/SierpinskyGUI.h b/src/SierpinskyGUI/SierpinskyGUI.h index 3ad8625..c76c2e9 100644 --- a/src/SierpinskyGUI/SierpinskyGUI.h +++ b/src/SierpinskyGUI/SierpinskyGUI.h @@ -25,7 +25,7 @@ #ifndef __SIERPINSKYGUI_H #define __SIERPINSKYGUI_H -#include +#include #include #include CORBA_CLIENT_HEADER(Sierpinsky) diff --git a/src/SierpinskyGUI/SierpinskyGUI_RunDlg.cxx b/src/SierpinskyGUI/SierpinskyGUI_RunDlg.cxx index 6871e35..c540110 100644 --- a/src/SierpinskyGUI/SierpinskyGUI_RunDlg.cxx +++ b/src/SierpinskyGUI/SierpinskyGUI_RunDlg.cxx @@ -24,8 +24,8 @@ // #include "SierpinskyGUI_RunDlg.h" #include "SierpinskyGUI.h" -#include "SALOME_LifeCycleCORBA.hxx" -#include "SalomeApp_Application.h" +#include +#include #include #include @@ -38,11 +38,11 @@ #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include CORBA_SERVER_HEADER(Sierpinsky)