mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-10 09:30:48 +08:00
Update target_link_libraries to use PUBLIC and PRIVATE visibility for dependencies. Now all 3rd-party is hidden for the external linking, no more issues to invalid path to 3rd-party
18 lines
606 B
CMake
18 lines
606 B
CMake
project(TKernel)
|
|
|
|
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit)
|
|
|
|
# Set desired Memory Manager
|
|
if ("${USE_MMGR_TYPE}" STREQUAL "FLEXIBLE")
|
|
target_compile_definitions("TKernel" PRIVATE "OCCT_MMGT_OPT_FLEXIBLE")
|
|
elseif ("${USE_MMGR_TYPE}" STREQUAL "TBB")
|
|
target_compile_definitions("TKernel" PRIVATE "OCCT_MMGT_OPT_TBB")
|
|
elseif ("${USE_MMGR_TYPE}" STREQUAL "JEMALLOC")
|
|
target_compile_definitions("TKernel" PRIVATE "OCCT_MMGT_OPT_JEMALLOC")
|
|
else ()
|
|
message (STATUS "Info: Used native memory manager")
|
|
endif()
|
|
|
|
# Add the precompiled header
|
|
ADD_PRECOMPILED_HEADER(TKernel "TKernel_pch.hxx" FALSE)
|