Salome HOME
Merge remote-tracking branch 'origin/vsr/fix_single_study_pb' into pre/fix_single_study
[modules/yacs.git] / src / UnitTests / CMakeLists.txt
index ea29a075360f872a2647fc68d8fa70d6839979cb..b891402f22ea8eb7f7431b1e192db57898830b6f 100755 (executable)
@@ -1,9 +1,9 @@
-# Copyright (C) 2012-2013  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2012-2014  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
@@ -47,7 +47,8 @@ SET(COMMON_LIBS
   SALOMELocalTraceTest
 )
 
-INCLUDE_DIRECTORIES(
+IF(NOT SALOME_LIGHT_ONLY)
+  INCLUDE_DIRECTORIES(
     ${OMNIORB_INCLUDE_DIR}
     ${CMAKE_CURRENT_SOURCE_DIR}/../SALOMETraceCollector
     ${CMAKE_CURRENT_SOURCE_DIR}/../SALOMETraceCollector/Test
@@ -88,6 +89,7 @@ INCLUDE_DIRECTORIES(
     SalomeIDLKernel
     ${OMNIORB_LIBRARIES}
   )
+ENDIF()
 
 ADD_EXECUTABLE(UnitTests UnitTests.cxx)
 TARGET_LINK_LIBRARIES(UnitTests ${COMMON_LIBS})