mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
0025114: CMake-based build tools for OCCT 7.0
All CMake meta-projects for OCCT are put to OCCT code (including fragments previously generated by WOK). "/bigobj" compiler flag added to TKQADraw because of the size of its object file [GeomToStep & Graphic3d] private headers are included from current dir of including source file
This commit is contained in:
31
src/TKQADraw/CMakeLists.txt
Normal file
31
src/TKQADraw/CMakeLists.txt
Normal file
@@ -0,0 +1,31 @@
|
||||
project(TKQADraw)
|
||||
|
||||
set (TOOLKIT_MODULES
|
||||
QABugs
|
||||
QADNaming
|
||||
QADraw
|
||||
QANCollection
|
||||
QANewBRepNaming
|
||||
QANewDBRepNaming
|
||||
QANewModTopOpe
|
||||
)
|
||||
|
||||
if (WIN32)
|
||||
list( APPEND USED_LIBS gdi32.lib )
|
||||
list( APPEND USED_LIBS advapi32.lib )
|
||||
list( APPEND USED_LIBS user32.lib )
|
||||
else()
|
||||
if(USE_TBB)
|
||||
list( APPEND USED_LIBS tbb )
|
||||
list( APPEND USED_LIBS tbbmalloc )
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
# /bigobj is required for windows builds because of the size of
|
||||
# some object files (CastImage for instance)
|
||||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
|
||||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /bigobj")
|
||||
endif()
|
||||
|
||||
include(${OCCT_SOURCE_DIR}/adm/cmake/BuildToolkit.cmake)
|
Reference in New Issue
Block a user