]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
CMake build procedure improvements:
authorvsr <vsr@opencascade.com>
Tue, 20 Aug 2013 10:02:41 +0000 (10:02 +0000)
committervsr <vsr@opencascade.com>
Tue, 20 Aug 2013 10:02:41 +0000 (10:02 +0000)
- CORBA staff

idl/CMakeLists.txt

index 7d2a1ccee12508ed83dc14594d789b14569d3994..38bd0204e3986d9f942ec694b77dcb2ab6e04bdc 100755 (executable)
@@ -22,26 +22,20 @@ INCLUDE(UseOmniORB)  # Provided by KERNEL
 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})