X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FPyConsole%2FCMakeLists.txt;h=aa79a1dc457df7693cd6e73f14719b64ac71a2bd;hb=72fe2af9c04daae44747cdce2f03ec395a4e5511;hp=5d8b5820e667762f39fad31c60badf251bd92cb6;hpb=499d70af8b5a0301b1d1260dc19455dc4fab7978;p=modules%2Fshaper.git diff --git a/src/PyConsole/CMakeLists.txt b/src/PyConsole/CMakeLists.txt index 5d8b5820e..aa79a1dc4 100644 --- a/src/PyConsole/CMakeLists.txt +++ b/src/PyConsole/CMakeLists.txt @@ -19,27 +19,32 @@ SET(PROJECT_AUTOMOC # resource files / to be processed by lrelease SET(TEXT_RESOURCES - resources/PyConsole_msg_en.ts - resources/PyConsole_msg_fr.ts - resources/PyConsole_msg_ja.ts + PyConsole_msg_fr.ts ) + # sources / static SET(PROJECT_SOURCES - PyConsole_Console.cxx - PyConsole_Editor.cxx - PyConsole_EnhEditor.cxx - PyConsole_EnhInterp.cxx - PyConsole_Event.cxx - PyConsole_Interp.cxx - PyConsole_Request.cxx + PyConsole_Console.cpp + PyConsole_Editor.cpp + PyConsole_EnhEditor.cpp + PyConsole_EnhInterp.cpp + PyConsole_Event.cpp + PyConsole_Interp.cpp + PyConsole_Request.cpp ) SET(PROJECT_LIBRARIES PyInterp - ${Qt5Widgets_LIBRARIES} + ${QT_LIBRARIES} + ${PYTHON_LIBRARIES} ) -QT5_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES}) +#QT4_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES}) +QT4_CREATE_TRANSLATION(QM_RESOURCES + ${PROJECT_SOURCES} + ${TEXT_RESOURCES} + OPTIONS -extensions cpp -no-recursive + ) SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${QM_RESOURCES}) @@ -50,7 +55,7 @@ INCLUDE_DIRECTORIES( ADD_DEFINITIONS(-DPYCONSOLE_EXPORTS -DHAVE_DEBUG_PYTHON) -ADD_LIBRARY(PyConsole STATIC +ADD_LIBRARY(PyConsole SHARED ${PROJECT_HEADERS} ${PROJECT_SOURCES} ${TEXT_RESOURCES} @@ -59,6 +64,7 @@ ADD_LIBRARY(PyConsole STATIC TARGET_LINK_LIBRARIES(PyConsole ${PROJECT_LIBRARIES}) -#INSTALL(TARGETS PyConsole DESTINATION bin) +INSTALL(TARGETS PyConsole DESTINATION bin) +INSTALL(FILES ${QM_RESOURCES} DESTINATION bin)