]> SALOME platform Git repositories - modules/shaper.git/blob - src/InitializationPlugin/CMakeLists.txt
Salome HOME
Issue #2052: Modification of parameters don't work (sketch, extrusion)
[modules/shaper.git] / src / InitializationPlugin / CMakeLists.txt
1 INCLUDE(Common)
2 INCLUDE(FindPython)
3
4 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/Events
5                     ${PROJECT_SOURCE_DIR}/src/Config
6                     ${PROJECT_SOURCE_DIR}/src/ModelAPI
7                     ${PROJECT_SOURCE_DIR}/src/GeomAPI
8                     ${PROJECT_SOURCE_DIR}/src/GeomDataAPI
9                     ${PROJECT_SOURCE_DIR}/src/ParametersPlugin
10                     ${SUIT_INCLUDE}
11                     ${PYTHON_INCLUDE_DIR}
12 )
13
14 SET(PROJECT_HEADERS
15     InitializationPlugin.h
16     InitializationPlugin_Plugin.h
17     InitializationPlugin_EvalListener.h
18     InitializationPlugin_PyInterp.h 
19 )
20
21 SET(PROJECT_SOURCES
22     InitializationPlugin_Plugin.cpp
23     InitializationPlugin_EvalListener.cpp
24     InitializationPlugin_PyInterp.cpp
25 )
26
27 MESSAGE(STATUS "PYTHON_LIBRARIES (ParametersPlugin): ${PYTHON_LIBRARIES}")
28
29 SET(PROJECT_LIBRARIES
30     Events
31     Config
32     ModelAPI
33     ${PyInterp}
34     ${PYTHON_LIBRARIES}
35 )
36
37 ADD_DEFINITIONS(-DINITIALIZATIONPLUGIN_EXPORTS -DHAVE_DEBUG_PYTHON)
38 ADD_LIBRARY(InitializationPlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
39
40 TARGET_LINK_LIBRARIES(InitializationPlugin ${PROJECT_LIBRARIES})
41
42 INSTALL(TARGETS InitializationPlugin DESTINATION ${SHAPER_INSTALL_PLUGIN_FILES})
43 #INSTALL(FILES ${XML_RESOURCES} DESTINATION plugins)
44