Foundation Classes - Extend precompiled headers (#1029)

- Added precompiled header file for TKBool toolkit with commonly used headers
- Extended TKDESTEP precompiled headers with Interface_EntityIterator.hxx
- Configured Google Test to use precompiled headers when BUILD_USE_PCH is enabled
This commit is contained in:
Pasukhin Dmitry
2026-01-23 19:55:58 +00:00
committed by GitHub
parent 582822b32f
commit 09996b852b
5 changed files with 31 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
project(TKBool)
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit)
# Add the precompiled header
ADD_PRECOMPILED_HEADER(TKBool "TKBool_pch.hxx" FALSE)

View File

@@ -2,4 +2,5 @@
set(OCCT_TKBool_FILES_LOCATION "${CMAKE_CURRENT_LIST_DIR}")
set(OCCT_TKBool_FILES
TKBool_pch.hxx
)

View File

@@ -0,0 +1,21 @@
// Copyright (c) 2025 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef TKBOOL_PCH_H
#define TKBOOL_PCH_H
#include <TopOpeBRepBuild_define.hxx>
#include <TopOpeBRepDS_define.hxx>
#include <TopOpeBRepTool_PROJECT.hxx>
#endif // TKBOOL_PCH_H