Salome HOME
projects
/
samples
/
component.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated copyright message
[samples/component.git]
/
src
/
SIGNALSComponent_Swig
/
CMakeLists.txt
diff --git
a/src/SIGNALSComponent_Swig/CMakeLists.txt
b/src/SIGNALSComponent_Swig/CMakeLists.txt
index 75d84b6dc63d3170e1cc7d9442ab0fcf31a78864..a953bb9ef8c7d21df9c94c0200e151ec06621ff9 100644
(file)
--- a/
src/SIGNALSComponent_Swig/CMakeLists.txt
+++ b/
src/SIGNALSComponent_Swig/CMakeLists.txt
@@
-1,4
+1,4
@@
-# Copyright (C) 2013-20
14
CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2013-20
23
CEA/DEN, EDF R&D, OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@
-59,9
+59,12
@@
SET(_swig_SCRIPTS
)
# --- rules ---
)
# --- rules ---
-
-SWIG_ADD_MODULE(libSIGNALSComponent_Swig python libSIGNALSComponent_Swig.i)
+IF(${CMAKE_VERSION} VERSION_LESS "3.8.0")
+ SWIG_ADD_MODULE(libSIGNALSComponent_Swig python libSIGNALSComponent_Swig.i)
+ELSE()
+ SWIG_ADD_LIBRARY(libSIGNALSComponent_Swig LANGUAGE python SOURCES libSIGNALSComponent_Swig.i)
+ENDIF()
SWIG_LINK_LIBRARIES(libSIGNALSComponent_Swig ${_link_LIBRARIES})
INSTALL(TARGETS _libSIGNALSComponent_Swig DESTINATION ${SALOME_INSTALL_LIBS})
SWIG_LINK_LIBRARIES(libSIGNALSComponent_Swig ${_link_LIBRARIES})
INSTALL(TARGETS _libSIGNALSComponent_Swig DESTINATION ${SALOME_INSTALL_LIBS})
-SALOME_INSTALL_SCRIPTS("${_swig_SCRIPTS}" ${SALOME_INSTALL_BINS})
+SALOME_INSTALL_SCRIPTS("${_swig_SCRIPTS}" ${SALOME_INSTALL_BINS}
EXTRA_DPYS "${SWIG_MODULE_libSIGNALSComponent_Swig_REAL_NAME}"
)