]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Porting SALOME GUI to CMake
authorana <ana@opencascade.com>
Wed, 10 Oct 2012 08:56:30 +0000 (08:56 +0000)
committerana <ana@opencascade.com>
Wed, 10 Oct 2012 08:56:30 +0000 (08:56 +0000)
salome_adm/CMakeLists.txt
salome_adm/cmake_files/SalomeMacros.cmake
salome_adm/unix/CMakeLists.txt [new file with mode: 0755]
salome_adm/unix/config_files/CMakeLists.txt [new file with mode: 0755]

index 0bc8d03f15c46a32c258fbc3477b43ae7102206c..6085559b648478ba8fff8627fbe1be904fc11e30 100755 (executable)
@@ -20,9 +20,5 @@
 ADD_SUBDIRECTORY(unix)
 ADD_SUBDIRECTORY(cmake_files)
 
-SET(input ${CMAKE_CURRENT_SOURCE_DIR}/SALOMEconfig.ref.in)
-SET(output ${CMAKE_CURRENT_BINARY_DIR}/SALOMEconfig.h)
-
-MESSAGE(STATUS "Creation of ${output}")
-CONFIGURE_FILE(${input} ${output})
-INSTALL(FILES ${output} DESTINATION ${KERNEL_salomeinclude_HEADERS})
\ No newline at end of file
+SALOME_CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/SALOMEconfig.ref.in" "${CMAKE_CURRENT_BINARY_DIR}/SALOMEconfig.h" INSTALL ${KERNEL_salomeinclude_HEADERS})
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/SALOMEconfig.ref.in DESTINATION salome_adm/unix RENAME SALOMEconfig.h.in)
\ No newline at end of file
index b10f468dbaea3582bddfd17517bea217a37114e7..b96926dff2f05b37bf9613616586c51ec865e1a6 100755 (executable)
@@ -91,7 +91,7 @@ ENDMACRO(PARSE_ARGUMENTS)
 #----------------------------------------------------------------------------
 # SALOME_INSTALL_SCRIPTS is a macro useful for installing scripts.
 #
-# USAGE: SALOME_INSTALL_SCRIPTS(file_list path [DEF_PERMS])
+# USAGE: SALOME_INSTALL_SCRIPTS(file_list path [WORKING_DIRECTORY dir] [DEF_PERMS])
 #
 # ARGUMENTS:
 # file_list: IN : list of files to be installed. This list should be quoted.
@@ -102,13 +102,17 @@ ENDMACRO(PARSE_ARGUMENTS)
 # only OWNER_WRITE, OWNER_READ, GROUP_READ, and WORLD_READ. 
 #----------------------------------------------------------------------------
 MACRO(SALOME_INSTALL_SCRIPTS file_list path)
-  PARSE_ARGUMENTS(SALOME_INSTALL_SCRIPTS "" "DEF_PERMS" ${ARGN})
-  SET(PERMS OWNER_READ OWNER_WRITE GROUP_READ  WORLD_READ)
+  PARSE_ARGUMENTS(SALOME_INSTALL_SCRIPTS "WORKING_DIRECTORY" "DEF_PERMS" ${ARGN})
+  SET(PERMS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
   IF(NOT SALOME_INSTALL_SCRIPTS_DEF_PERMS)
     SET(PERMS ${PERMS} OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE)
   ENDIF(NOT SALOME_INSTALL_SCRIPTS_DEF_PERMS)
   FOREACH(file ${file_list})
-    INSTALL(FILES ${file} DESTINATION ${path} PERMISSIONS ${PERMS})
+    SET(PREFIX "")
+    IF(SALOME_INSTALL_SCRIPTS_WORKING_DIRECTORY)
+      SET(PREFIX "${SALOME_INSTALL_SCRIPTS_WORKING_DIRECTORY}/")
+    ENDIF(SALOME_INSTALL_SCRIPTS_WORKING_DIRECTORY)
+    INSTALL(FILES ${PREFIX}${file} DESTINATION ${path} PERMISSIONS ${PERMS})
     GET_FILENAME_COMPONENT(ext ${file} EXT)
     IF(ext STREQUAL .py)
       INSTALL(CODE "MESSAGE(STATUS \"py compiling ${CMAKE_INSTALL_PREFIX}/${path}/${file}\")")
diff --git a/salome_adm/unix/CMakeLists.txt b/salome_adm/unix/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..a0b5ec4
--- /dev/null
@@ -0,0 +1,35 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE\r
+#\r
+# This library is free software; you can redistribute it and/or\r
+# modify it under the terms of the GNU Lesser General Public\r
+# License as published by the Free Software Foundation; either\r
+# version 2.1 of the License.\r
+#\r
+# This library is distributed in the hope that it will be useful,\r
+# but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
+# Lesser General Public License for more details.\r
+#\r
+# You should have received a copy of the GNU Lesser General Public\r
+# License along with this library; if not, write to the Free Software\r
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA\r
+#\r
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com\r
+#\r
+\r
+ADD_SUBDIRECTORY(config_files)\r
+\r
+SET(DEPRECATED_FILES\r
+  DEPRECATED/F77config.h.in\r
+  DEPRECATED/sstream.in\r
+  DEPRECATED/envScript.in\r
+  DEPRECATED/depend.in\r
+  DEPRECATED/make_commence.in\r
+  DEPRECATED/make_conclude.in\r
+  DEPRECATED/make_module.in\r
+  DEPRECATED/make_omniorb.in\r
+)\r
+\r
+# The deprecated files are deprecated for the KERNEL but not for the\r
+# related modules (GUI, MED, ...), for now. Some files have to be installed.\r
+INSTALL(FILES ${DEPRECATED_FILES} DESTINATION salome_adm/unix)\r
diff --git a/salome_adm/unix/config_files/CMakeLists.txt b/salome_adm/unix/config_files/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..e7add33
--- /dev/null
@@ -0,0 +1,84 @@
+# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE\r
+#\r
+# This library is free software; you can redistribute it and/or\r
+# modify it under the terms of the GNU Lesser General Public\r
+# License as published by the Free Software Foundation; either\r
+# version 2.1 of the License.\r
+#\r
+# This library is distributed in the hope that it will be useful,\r
+# but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
+# Lesser General Public License for more details.\r
+#\r
+# You should have received a copy of the GNU Lesser General Public\r
+# License along with this library; if not, write to the Free Software\r
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA\r
+#\r
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com\r
+#\r
\r
+# The deprecated files are deprecated for the KERNEL but not for the\r
+# related modules (GUI, MED, ...). Some files have to be installed.\r
+SET(DEPRECATED_FILES\r
+  DEPRECATED/ac_cc_warnings.m4\r
+  DEPRECATED/ac_cxx_bool.m4\r
+  DEPRECATED/ac_cxx_mutable.m4\r
+  DEPRECATED/ac_cxx_partial_specialization.m4\r
+  DEPRECATED/ac_cxx_typename.m4\r
+  DEPRECATED/check_mico.m4\r
+  DEPRECATED/check_pthreads.m4\r
+  DEPRECATED/config.sub\r
+  DEPRECATED/config.guess\r
+  DEPRECATED/install-sh\r
+  DEPRECATED/libtool.m4\r
+  DEPRECATED/ltconfig\r
+  DEPRECATED/ltmain.sh\r
+  DEPRECATED/check_Salome.m4\r
+  DEPRECATED/check_java.m4\r
+  DEPRECATED/missing\r
+  DEPRECATED/mkinstalldirs\r
+)\r
+\r
+SET(m4_DATA\r
+  ac_cxx_depend_flag.m4\r
+  ac_cxx_have_sstream.m4\r
+  ac_cxx_namespaces.m4\r
+  ac_cxx_option.m4\r
+  ac_cxx_template_options.m4\r
+  ac_cxx_use_std_iostream.m4\r
+  ac_cxx_warnings.m4\r
+  ac_linker_options.m4\r
+  ac_check_sizeof_fortran.m4\r
+  acx_pthread.m4\r
+  check_Kernel.m4\r
+  check_boost.m4\r
+  check_cas.m4\r
+  check_corba.m4\r
+  check_cppunit.m4\r
+  check_f77.m4\r
+  check_calcium.m4\r
+  check_hdf5.m4\r
+  check_htmlgen.m4\r
+  check_sphinx.m4\r
+  check_lam.m4\r
+  check_libbatch.m4\r
+  check_mpi.m4\r
+  check_openmpi.m4\r
+  check_mpich.m4\r
+  check_omniorb.m4\r
+  check_sockets.m4\r
+  check_swig.m4\r
+  check_vtk.m4\r
+  check_withihm.m4\r
+  enable_pthreads.m4\r
+  production.m4\r
+  pyembed.m4\r
+  python.m4\r
+  check_libxml.m4\r
+  check_paco++.m4\r
+  local_install.m4\r
+  hack_libtool.m4\r
+  check_tbb.m4\r
+)\r
+INSTALL(FILES ${DEPRECATED_FILES} DESTINATION salome_adm/unix/config_files/DEPRECATED)\r
+INSTALL(FILES ${m4_DATA} DESTINATION salome_adm/unix/config_files)\r