Salome HOME
Relaunch operation on end of previous sketch operation
[modules/shaper.git] / src / PyInterp / CMakeLists.txt
1
2 SET(CMAKE_AUTOMOC ON)
3
4 # header files 
5 SET(PROJECT_HEADERS
6   PyInterp.h
7   PyInterp_Dispatcher.h
8   PyInterp_Event.h
9   PyInterp_Interp.h
10   PyInterp_Request.h
11   PyInterp_Watcher.h
12 )
13
14 SET(PROJECT_AUTOMOC 
15     ${CMAKE_CURRENT_BINARY_DIR}/PyInterp_automoc.cpp
16 )
17
18 # sources / static
19 SET(PROJECT_SOURCES
20   PyInterp_Dispatcher.cpp
21   PyInterp_Event.cpp
22   PyInterp_Interp.cpp
23   PyInterp_Request.cpp
24 )
25
26 SET(PROJECT_LIBRARIES
27         PyEvent
28         ${QT_LIBRARIES}
29         ${PYTHON_LIBRARIES}
30 )
31
32 SOURCE_GROUP ("Generated Files" FILES ${PROJECT_AUTOMOC})
33
34 ADD_DEFINITIONS(-DPYINTERP_EXPORTS -DHAVE_DEBUG_PYTHON)
35
36 INCLUDE_DIRECTORIES(
37         ${PROJECT_SOURCE_DIR}/src/PyEvent
38 )
39
40 ADD_LIBRARY(PyInterp SHARED     
41         ${PROJECT_SOURCES} 
42         ${PROJECT_HEADERS} 
43 )
44
45 TARGET_LINK_LIBRARIES(PyInterp ${PROJECT_LIBRARIES})
46
47 INSTALL(TARGETS PyInterp DESTINATION bin)