mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +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:
37
src/TKDraw/CMakeLists.txt
Normal file
37
src/TKDraw/CMakeLists.txt
Normal file
@@ -0,0 +1,37 @@
|
||||
project(TKDraw)
|
||||
|
||||
set (TOOLKIT_MODULES
|
||||
Draw
|
||||
DBRep
|
||||
DrawTrSurf
|
||||
)
|
||||
|
||||
if (WIN32)
|
||||
list( APPEND USED_LIBS gdi32.lib )
|
||||
list( APPEND USED_LIBS advapi32.lib )
|
||||
list( APPEND USED_LIBS user32.lib )
|
||||
elseif(APPLE)
|
||||
find_library(FRAMEWORKS_TCL NAMES Tcl)
|
||||
list( APPEND USED_LIBS ${FRAMEWORKS_TCL} )
|
||||
find_library(FRAMEWORKS_TK NAMES Tk)
|
||||
list( APPEND USED_LIBS ${FRAMEWORKS_TK} )
|
||||
if(USE_TBB)
|
||||
list( APPEND USED_LIBS tbb )
|
||||
list( APPEND USED_LIBS tbbmalloc )
|
||||
endif()
|
||||
list( APPEND USED_LIBS objc )
|
||||
find_library(FRAMEWORKS_APPKIT NAMES Appkit)
|
||||
list( APPEND USED_LIBS ${FRAMEWORKS_APPKIT} )
|
||||
find_library(FRAMEWORKS_IOKIT NAMES IOKit)
|
||||
list( APPEND USED_LIBS ${FRAMEWORKS_IOKIT} )
|
||||
else()
|
||||
list( APPEND USED_LIBS tcl8.6 )
|
||||
list( APPEND USED_LIBS X11 )
|
||||
list( APPEND USED_LIBS tk8.6 )
|
||||
if(USE_TBB)
|
||||
list( APPEND USED_LIBS tbb )
|
||||
list( APPEND USED_LIBS tbbmalloc )
|
||||
endif()
|
||||
endif()
|
||||
|
||||
include(${OCCT_SOURCE_DIR}/adm/cmake/BuildToolkit.cmake)
|
Reference in New Issue
Block a user