From: Ovidiu Mircescu Date: Thu, 25 Aug 2022 10:54:50 +0000 (+0200) Subject: CEA issue 30278 - patch from Nabil GHODBANE for WINDOWS. X-Git-Tag: V9_10_0a1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=48e49bf1f64d4b84201f505113d09e00617fb372;p=tools%2Fpy2cpp.git CEA issue 30278 - patch from Nabil GHODBANE for WINDOWS. --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 38854a1..d3fda0a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -51,7 +51,11 @@ TARGET_INCLUDE_DIRECTORIES(py2cpp PUBLIC $ $) -INSTALL(TARGETS py2cpp EXPORT Py2cppCfg LIBRARY DESTINATION lib) +IF(WIN32) + INSTALL(TARGETS py2cpp EXPORT Py2cppCfg LIBRARY DESTINATION lib ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION bin ${CMAKE_INSTALL_BINDIR}) +ELSE(WIN32) + INSTALL(TARGETS py2cpp EXPORT Py2cppCfg LIBRARY DESTINATION lib) +ENDIF(WIN32) INSTALL(FILES ${_py2cpp_headers} DESTINATION include/py2cpp) INSTALL(EXPORT Py2cppCfg DESTINATION lib/cmake/py2cpp FILE Py2cppConfig.cmake)