Salome HOME
Copyright update 2022
[modules/paravis.git] / test / standalone / CMakeLists.txt
index 4921a7f16ea2e62bcc508b33dd1d26e37e6b54d1..38cbf047efd7060cc9f6e48cda192cb6bcccdda8 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2010-2019  CEA/DEN, EDF R&D
+# Copyright (C) 2010-2022  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -20,6 +20,7 @@
 
 PROJECT(LightPARAVIS)
 CMAKE_MINIMUM_REQUIRED(VERSION 2.8.10)
+CMAKE_POLICY(SET CMP0053 NEW) # for correct Qt 5 detection procedure
 IF(WIN32)
   CMAKE_POLICY(SET CMP0020 OLD) # disable automatic linking to qtmain.lib 
 ENDIF(WIN32)
@@ -34,8 +35,6 @@ FIND_PACKAGE(Qt5Gui)
 LIST(APPEND CMAKE_PREFIX_PATH "$ENV{PARAVIEW_ROOT_DIR}")
 FIND_PACKAGE(ParaView REQUIRED)
 
-INCLUDE(${PARAVIEW_USE_FILE})
-INCLUDE(ParaViewMacros)
 SET(CMAKE_INCLUDE_CURRENT_DIR ON)
 
 # Main applications