INCLUDE_DIRECTORIES(
${OMNIORB_INCLUDE_DIR}
${KERNEL_INCLUDE_DIRS}
- ${CMAKE_CURRENT_BINARY_DIR}
)
SET(SalomeIDLGUI_IDLSOURCES
SalomeApp_Engine.idl
)
-SET(IDL_INCLUDE_DIRS
+SET(_idl_include_dirs
${CMAKE_CURRENT_SOURCE_DIR}
${KERNEL_ROOT_DIR}/idl/salome
)
-SET(TYPE SHARED)
-IF(WINDOWS)
- SET(TYPE STATIC)
-ENDIF(WINDOWS)
-
-ADD_DEFINITIONS(${OMNIORB_DEFINITIONS})
+SET(_idl_link_flags
+ ${KERNEL_SalomeIDLKernel}
+)
-OMNIORB_ADD_MODULE(SalomeIDLGUI "${SalomeIDLGUI_IDLSOURCES}" "${IDL_INCLUDE_DIRS}" ${TYPE})
-TARGET_LINK_LIBRARIES(SalomeIDLGUI ${CORBA_LIBS})
-
+OMNIORB_ADD_MODULE(SalomeIDLGUI "${SalomeIDLGUI_IDLSOURCES}" "${_idl_include_dirs}" "${_idl_link_flags}")
INSTALL(TARGETS SalomeIDLGUI EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})