Salome HOME
b623b64cfea6fb467aab85ed75c8e94af6f3a039
[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 )
41
42 QT4_ADD_TRANSLATION(QM_RESOURCES ${TEXT_RESOURCES})
43
44 SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC} ${QM_RESOURCES})
45
46 INCLUDE_DIRECTORIES(
47         ${PROJECT_SOURCE_DIR}/src/PyEvent
48         ${PROJECT_SOURCE_DIR}/src/PyInterp
49 )
50
51 ADD_DEFINITIONS(-DPYCONSOLE_EXPORTS -DHAVE_DEBUG_PYTHON)
52
53 ADD_LIBRARY(PyConsole STATIC
54         ${PROJECT_HEADERS}
55         ${PROJECT_SOURCES}
56         ${TEXT_RESOURCES} 
57         ${QM_RESOURCES}
58 )
59
60 TARGET_LINK_LIBRARIES(PyConsole ${PROJECT_LIBRARIES})
61
62 #INSTALL(TARGETS PyConsole DESTINATION bin)
63
64