Salome HOME
Changes in source code within porting on CentOS 6.3
[modules/shaper.git] / src / PyConsole / CMakeLists.txt
1
2 SET(CMAKE_AUTOMOC ON)
3
4 # header files 
5 SET(PROJECT_HEADERS
6   PyConsole.h
7   PyConsole_Console.h
8   PyConsole_Editor.h
9   PyConsole_EnhEditor.h
10   PyConsole_EnhInterp.h
11   PyConsole_Event.h
12   PyConsole_Interp.h
13   PyConsole_Request.h
14 )
15
16 SET(PROJECT_AUTOMOC 
17     ${CMAKE_CURRENT_BINARY_DIR}/PyConsole_automoc.cpp
18 )
19
20 # resource files / to be processed by lrelease
21 SET(TEXT_RESOURCES
22   resources/PyConsole_msg_en.ts
23   resources/PyConsole_msg_fr.ts
24   resources/PyConsole_msg_ja.ts
25 )
26 # sources / static
27 SET(PROJECT_SOURCES
28   PyConsole_Console.cxx
29   PyConsole_Editor.cxx
30   PyConsole_EnhEditor.cxx
31   PyConsole_EnhInterp.cxx
32   PyConsole_Event.cxx
33   PyConsole_Interp.cxx
34   PyConsole_Request.cxx
35 )
36
37 SET(PROJECT_LIBRARIES
38         PyInterp
39         ${QT_LIBRARIES}
40         ${PYTHON_LIBRARIES}
41 )
42
43 QT4_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES})
44
45 SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${QM_RESOURCES})
46
47 INCLUDE_DIRECTORIES(
48         ${PROJECT_SOURCE_DIR}/src/PyEvent
49         ${PROJECT_SOURCE_DIR}/src/PyInterp
50 )
51
52 ADD_DEFINITIONS(-DPYCONSOLE_EXPORTS -DHAVE_DEBUG_PYTHON)
53
54 ADD_LIBRARY(PyConsole STATIC
55         ${PROJECT_HEADERS}
56         ${PROJECT_SOURCES}
57         ${TEXT_RESOURCES} 
58         ${QM_RESOURCES}
59 )
60
61 TARGET_LINK_LIBRARIES(PyConsole ${PROJECT_LIBRARIES})
62
63 #INSTALL(TARGETS PyConsole DESTINATION bin)
64
65