Salome HOME
#24735 [CEA][Windows] HELLO compilation issue
[samples/hello.git] / src / HELLO / CMakeLists.txt
index b517c8b73ddcd3f624571c14783bb899270c81fd..f8a6863ebd0a95287f8eb540a2b3f4b46e79f54a 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright (C) 2012-2013  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2012-2021  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
 # License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# version 2.1 of the License, or (at your option) any later version.
 #
 # This library is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -26,12 +26,19 @@ INCLUDE_DIRECTORIES(
   ${PROJECT_BINARY_DIR}/idl
 )
 
+# --- definitions ---
+ADD_DEFINITIONS(
+  ${OMNIORB_DEFINITIONS}
+)
+
 # libraries to link to
 SET(_link_LIBRARIES
   ${OMNIORB_LIBRARIES}
   ${KERNEL_SalomeIDLKernel}
   ${KERNEL_OpUtil}
   ${KERNEL_SalomeContainer}
+  ${KERNEL_SalomeKernelHelpers}
+  ${KERNEL_SalomeDS}
   SalomeIDLHELLO
 )
 
@@ -40,6 +47,7 @@ SET(_link_LIBRARIES
 # header files / no moc processing
 SET(HELLO_HEADERS
   HELLO.hxx
+  HELLO_Component_Generator.hxx
 )
 
 # --- sources ---
@@ -47,6 +55,7 @@ SET(HELLO_HEADERS
 # sources / static
 SET(HELLO_SOURCES
   HELLO.cxx
+  HELLO_Component_Generator.cxx
 )
 
 # --- rules ---