]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
*** empty log message ***
authoradam <adam>
Thu, 24 Sep 2009 14:15:36 +0000 (14:15 +0000)
committeradam <adam>
Thu, 24 Sep 2009 14:15:36 +0000 (14:15 +0000)
salome_adm/cmake_files/am2cmake.py

index 505ea0a35ea145bcdef19947d91eac1c997a0bd8..67facc6cc2ec3f601bc678cbe63985e2f3b96ff4 100644 (file)
@@ -920,6 +920,8 @@ class CMakeFile(object):
             SET(outputs ${src})
             SET(dynsrc ${CMAKE_CURRENT_BINARY_DIR}/${base}DynSK.cc)
             SET(outputs ${outputs} ${dynsrc})
+            SET(inc ${CMAKE_CURRENT_BINARY_DIR}/${base}.hh)
+            SET(outputs ${outputs} ${inc})
             IF(input STREQUAL Calcium_Ports.idl)
             SET(input ${CMAKE_CURRENT_BINARY_DIR}/${input})
             ELSE(input STREQUAL Calcium_Ports.idl)
@@ -1292,6 +1294,7 @@ class CMakeFile(object):
         SET(vars ${vars} -include SALOMEconfig.h)
         SET(vars ${vars} -ftemplate-depth-32)
         SET(vars ${vars} -fPIC)
+        SET(vars ${vars} -g)
         ENDIF(WINDOWS)
         SET(flags)
         FOREACH(f ${var})
@@ -1524,6 +1527,11 @@ class CMakeFile(object):
         newlines.append(r'''
         SET(name "${amname}_exe")
         SET(srcs ${${amname}_SOURCES} ${dist_${amname}_SOURCES})
+        SET(l ${nodist_${amname}_SOURCES})
+        FOREACH(f ${l})
+        SET(src ${CMAKE_CURRENT_BINARY_DIR}/${f})
+        SET(srcs ${srcs} ${src})
+        ENDFOREACH(f ${l})
         LIST(LENGTH srcs nb)
         IF(nb)
         ADD_EXECUTABLE(${name} ${srcs})