mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-01 17:36:21 +03:00
Extending CMake procedure by 'BUILD_MODULE_QtSamples' variable to switch on qt samples build. Implementation required: - union of occt_toolkit_tool.cmake and occt_toolkit.cmake files; - correction of qt samples sources by adding path to Qt 'plugins' folder. It helps to avoid definition of additional variable (QT_QPA_PLATFORM_PLUGIN_PATH) when staring sample.bat for qt samples; - executable processing is extended in cmake procedure by providing 'EXECUTABLE_PROJECT' variable. Now we need not specify custom processing for DRAWEXE in occt_toolkit.cmake
14 lines
356 B
CMake
14 lines
356 B
CMake
if ("${TARGET_FOLDER}" STREQUAL "")
|
|
set (USE_QT ON)
|
|
set (RELATIVE_DIR "tools")
|
|
set (MODULES_LIST ${OCCT_TOOLS})
|
|
set (TARGET_FOLDER "Tools")
|
|
set (TOOLKITS_NAME_SUFFIX "TOOL_TOOLKITS")
|
|
else()
|
|
unset (USE_QT)
|
|
unset (RELATIVE_DIR)
|
|
unset (MODULES_LIST)
|
|
unset (TARGET_FOLDER)
|
|
unset (TOOLKITS_NAME_SUFFIX)
|
|
endif("${TARGET_FOLDER}" STREQUAL "")
|