mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
Samples - CMake configuration fix (#643)
- Migrates legacy text-based FILES, PACKAGES, and EXTERNLIB configuration files to proper CMake format (.cmake extensions) - Updates CMakeLists.txt files to use modern CMake practices with explicit configurations and target-specific definitions - Modifies the qt_macro.cmake to work with the new CMake variable-based file management system
This commit is contained in:
@@ -1174,7 +1174,6 @@ if (INSTALL_SAMPLES)
|
|||||||
OCCT_INSTALL_FILE_OR_DIR ("samples/java" "${INSTALL_DIR_SAMPLES}")
|
OCCT_INSTALL_FILE_OR_DIR ("samples/java" "${INSTALL_DIR_SAMPLES}")
|
||||||
OCCT_INSTALL_FILE_OR_DIR ("samples/ocafsamples" "${INSTALL_DIR_SAMPLES}")
|
OCCT_INSTALL_FILE_OR_DIR ("samples/ocafsamples" "${INSTALL_DIR_SAMPLES}")
|
||||||
OCCT_INSTALL_FILE_OR_DIR ("samples/qt" "${INSTALL_DIR_SAMPLES}")
|
OCCT_INSTALL_FILE_OR_DIR ("samples/qt" "${INSTALL_DIR_SAMPLES}")
|
||||||
OCCT_INSTALL_FILE_OR_DIR ("samples/OCCTOverview/code" "${INSTALL_DIR_SAMPLES}/OCCTOverview")
|
|
||||||
|
|
||||||
install (FILES "${CMAKE_BINARY_DIR}/env.samples.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR_SAMPLES}/qt/FuncDemo" RENAME "env.${SCRIPT_EXT}")
|
install (FILES "${CMAKE_BINARY_DIR}/env.samples.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR_SAMPLES}/qt/FuncDemo" RENAME "env.${SCRIPT_EXT}")
|
||||||
install (FILES "${CMAKE_BINARY_DIR}/env.samples.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR_SAMPLES}/qt/IESample" RENAME "env.${SCRIPT_EXT}")
|
install (FILES "${CMAKE_BINARY_DIR}/env.samples.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR_SAMPLES}/qt/IESample" RENAME "env.${SCRIPT_EXT}")
|
||||||
@@ -1403,13 +1402,13 @@ if (BUILD_SAMPLES_QT)
|
|||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
## Copy sources of OCCTOverview for using in the sample
|
## Copy sources of OCCTOverview for using in the sample
|
||||||
OCCT_INSTALL_FILE_OR_DIR ("samples/OCCTOverview/code/DataExchangeSamples.cxx" "${INSTALL_DIR_SAMPLES}/OCCTOverview/code")
|
OCCT_INSTALL_FILE_OR_DIR ("samples/qt/OCCTOverview/code/DataExchangeSamples.cxx" "${INSTALL_DIR_SAMPLES}/OCCTOverview/code")
|
||||||
OCCT_INSTALL_FILE_OR_DIR ("samples/OCCTOverview/code/OcafSamples.cxx" "${INSTALL_DIR_SAMPLES}/OCCTOverview/code")
|
OCCT_INSTALL_FILE_OR_DIR ("samples/qt/OCCTOverview/code/OcafSamples.cxx" "${INSTALL_DIR_SAMPLES}/OCCTOverview/code")
|
||||||
OCCT_INSTALL_FILE_OR_DIR ("samples/OCCTOverview/code/GeometrySamples.cxx" "${INSTALL_DIR_SAMPLES}/OCCTOverview/code")
|
OCCT_INSTALL_FILE_OR_DIR ("samples/qt/OCCTOverview/code/GeometrySamples.cxx" "${INSTALL_DIR_SAMPLES}/OCCTOverview/code")
|
||||||
OCCT_INSTALL_FILE_OR_DIR ("samples/OCCTOverview/code/TopologySamples.cxx" "${INSTALL_DIR_SAMPLES}/OCCTOverview/code")
|
OCCT_INSTALL_FILE_OR_DIR ("samples/qt/OCCTOverview/code/TopologySamples.cxx" "${INSTALL_DIR_SAMPLES}/OCCTOverview/code")
|
||||||
OCCT_INSTALL_FILE_OR_DIR ("samples/OCCTOverview/code/TriangulationSamples.cxx" "${INSTALL_DIR_SAMPLES}/OCCTOverview/code")
|
OCCT_INSTALL_FILE_OR_DIR ("samples/qt/OCCTOverview/code/TriangulationSamples.cxx" "${INSTALL_DIR_SAMPLES}/OCCTOverview/code")
|
||||||
OCCT_INSTALL_FILE_OR_DIR ("samples/OCCTOverview/code/Viewer2dSamples.cxx" "${INSTALL_DIR_SAMPLES}/OCCTOverview/code")
|
OCCT_INSTALL_FILE_OR_DIR ("samples/qt/OCCTOverview/code/Viewer2dSamples.cxx" "${INSTALL_DIR_SAMPLES}/OCCTOverview/code")
|
||||||
OCCT_INSTALL_FILE_OR_DIR ("samples/OCCTOverview/code/Viewer3dSamples.cxx" "${INSTALL_DIR_SAMPLES}/OCCTOverview/code")
|
OCCT_INSTALL_FILE_OR_DIR ("samples/qt/OCCTOverview/code/Viewer3dSamples.cxx" "${INSTALL_DIR_SAMPLES}/OCCTOverview/code")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
@@ -1488,6 +1487,18 @@ endif()
|
|||||||
|
|
||||||
OCCT_MODULES_AND_TOOLKITS (SAMPLES "SAMPLES_TOOLKITS" OCCT_SAMPLES)
|
OCCT_MODULES_AND_TOOLKITS (SAMPLES "SAMPLES_TOOLKITS" OCCT_SAMPLES)
|
||||||
|
|
||||||
|
# Load sample configuration files
|
||||||
|
foreach (OCCT_SAMPLE ${OCCT_SAMPLES})
|
||||||
|
foreach (BUILD_SAMPLE_TOOLKIT ${${OCCT_SAMPLE}_SAMPLES_TOOLKITS})
|
||||||
|
OCCT_INCLUDE_CMAKE_FILE (samples/${OCCT_SAMPLE}/${BUILD_SAMPLE_TOOLKIT}/PACKAGES)
|
||||||
|
OCCT_INCLUDE_CMAKE_FILE (samples/${OCCT_SAMPLE}/${BUILD_SAMPLE_TOOLKIT}/EXTERNLIB)
|
||||||
|
OCCT_INCLUDE_CMAKE_FILE (samples/${OCCT_SAMPLE}/${BUILD_SAMPLE_TOOLKIT}/FILES)
|
||||||
|
foreach (PACKAGE ${OCCT_${BUILD_SAMPLE_TOOLKIT}_LIST_OF_PACKAGES})
|
||||||
|
OCCT_INCLUDE_CMAKE_FILE (samples/${OCCT_SAMPLE}/${PACKAGE}/FILES)
|
||||||
|
endforeach()
|
||||||
|
endforeach()
|
||||||
|
endforeach()
|
||||||
|
|
||||||
if (BUILD_SAMPLES_QT)
|
if (BUILD_SAMPLES_QT)
|
||||||
if (BUILD_SAMPLES_QT)
|
if (BUILD_SAMPLES_QT)
|
||||||
if (NOT Qt5_FOUND OR "${Qt5Gui_EGL_INCLUDE_DIRS}" STREQUAL "" OR NOT WIN32)
|
if (NOT Qt5_FOUND OR "${Qt5Gui_EGL_INCLUDE_DIRS}" STREQUAL "" OR NOT WIN32)
|
||||||
|
@@ -79,8 +79,24 @@ macro (FIND_AND_WRAP_TS_FILE RESOURCE_FILE_NAME TARGET_FOLDER QM_FILES)
|
|||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
macro (FIND_AND_INSTALL_QT_RESOURCES OCCT_PACKAGE RESOURCE_FILES)
|
macro (FIND_AND_INSTALL_QT_RESOURCES OCCT_PACKAGE RESOURCE_FILES)
|
||||||
file (STRINGS "${OCCT_ROOT_DIR}/${RELATIVE_SOURCES_DIR}/${OCCT_PACKAGE}/FILES" TS_FILES REGEX ".+[.]ts")
|
# Package name is now the sample name (e.g., "Tutorial")
|
||||||
file (STRINGS "${OCCT_ROOT_DIR}/${RELATIVE_SOURCES_DIR}/${OCCT_PACKAGE}/FILES" QRC_FILES REGEX ".+[.]qrc")
|
set(PACKAGE_NAME ${OCCT_PACKAGE})
|
||||||
|
|
||||||
|
# Get files from CMAKE variables with proper location
|
||||||
|
set(ALL_FILES ${OCCT_${PACKAGE_NAME}_FILES})
|
||||||
|
set(FILES_LOCATION ${OCCT_${PACKAGE_NAME}_FILES_LOCATION})
|
||||||
|
|
||||||
|
# Filter for .ts and .qrc files with full paths
|
||||||
|
set(TS_FILES)
|
||||||
|
set(QRC_FILES)
|
||||||
|
foreach(FILE ${ALL_FILES})
|
||||||
|
if(FILE MATCHES ".+[.]ts$")
|
||||||
|
list(APPEND TS_FILES "${FILES_LOCATION}/${FILE}")
|
||||||
|
endif()
|
||||||
|
if(FILE MATCHES ".+[.]qrc$")
|
||||||
|
list(APPEND QRC_FILES "${FILES_LOCATION}/${FILE}")
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
|
|
||||||
string (FIND "${OCCT_PACKAGE}" "/" _index)
|
string (FIND "${OCCT_PACKAGE}" "/" _index)
|
||||||
if (_index GREATER -1)
|
if (_index GREATER -1)
|
||||||
@@ -92,19 +108,17 @@ macro (FIND_AND_INSTALL_QT_RESOURCES OCCT_PACKAGE RESOURCE_FILES)
|
|||||||
|
|
||||||
#message("QRC files are: ${QRC_FILES} in ${OCCT_PACKAGE}")
|
#message("QRC files are: ${QRC_FILES} in ${OCCT_PACKAGE}")
|
||||||
foreach (QRC_FILE ${QRC_FILES})
|
foreach (QRC_FILE ${QRC_FILES})
|
||||||
set (QRC_FILE_RELATIVE "${OCCT_ROOT_DIR}/${RELATIVE_SOURCES_DIR}/${OCCT_PACKAGE}/${QRC_FILE}")
|
if (EXISTS ${QRC_FILE})
|
||||||
if (EXISTS ${QRC_FILE_RELATIVE})
|
FIND_AND_WRAP_RESOURCE_FILE(${QRC_FILE} RCC_FILES)
|
||||||
FIND_AND_WRAP_RESOURCE_FILE(${QRC_FILE_RELATIVE} RCC_FILES)
|
|
||||||
list (APPEND ${RESOURCE_FILES} "${RCC_FILES}")
|
list (APPEND ${RESOURCE_FILES} "${RCC_FILES}")
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
#message("TS files are: ${TS_FILES} in ${OCCT_PACKAGE}")
|
#message("TS files are: ${TS_FILES} in ${OCCT_PACKAGE}")
|
||||||
foreach (TS_FILE ${TS_FILES})
|
foreach (TS_FILE ${TS_FILES})
|
||||||
set (TS_FILE_RELATIVE "${OCCT_ROOT_DIR}/${RELATIVE_SOURCES_DIR}/${OCCT_PACKAGE}/${TS_FILE}")
|
FIND_AND_WRAP_TS_FILE(${TS_FILE} "${TARGET_FOLDER}/${CURRENT_MODULE}" QM_FILES)
|
||||||
FIND_AND_WRAP_TS_FILE(${TS_FILE_RELATIVE} "${TARGET_FOLDER}/${CURRENT_MODULE}" QM_FILES)
|
if (EXISTS ${TS_FILE})
|
||||||
if (EXISTS ${TS_FILE_RELATIVE})
|
list (APPEND ${RESOURCE_FILES} "${TS_FILE}")
|
||||||
list (APPEND ${RESOURCE_FILES} "${TS_FILE_RELATIVE}")
|
|
||||||
list (APPEND ${RESOURCE_FILES} "${QM_FILES}")
|
list (APPEND ${RESOURCE_FILES} "${QM_FILES}")
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
@@ -21,4 +21,4 @@ export RES_DIR=${aSamplePath}/${STATION}/res
|
|||||||
|
|
||||||
export PATH=${QTDIR}/bin:${PATH}
|
export PATH=${QTDIR}/bin:${PATH}
|
||||||
|
|
||||||
export "CSF_OCCTOverviewSampleCodePath=${aSamplePath}/../../OCCTOverview/code"
|
export "CSF_OCCTOverviewSampleCodePath=${aSamplePath}/../../qt/OCCTOverview/code"
|
||||||
|
@@ -32,7 +32,7 @@ if [ ! -f "$EXE_PATH" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export CSF_OCCTOverviewSampleCodePath="${CSF_OCCTSamplesPath}/OCCTOverview/code"
|
export CSF_OCCTOverviewSampleCodePath="${CSF_OCCTSamplesPath}/qt/OCCTOverview/code"
|
||||||
|
|
||||||
cd ${aCurrentPath}
|
cd ${aCurrentPath}
|
||||||
"$EXE_PATH"
|
"$EXE_PATH"
|
||||||
|
@@ -95,7 +95,7 @@ In addition to these two samples, there are much more that might be of use to a
|
|||||||
Check Readme files in the sample directories to learn more about samples compilation.
|
Check Readme files in the sample directories to learn more about samples compilation.
|
||||||
|
|
||||||
**Note:** source code for OCCTOverview is stored at 'samples/qt/OCCTOverview/src' folder in your OCCT root,
|
**Note:** source code for OCCTOverview is stored at 'samples/qt/OCCTOverview/src' folder in your OCCT root,
|
||||||
and the source code files for examples presented in subsections are stored at 'samples/OCCTOverview/code folder'.
|
and the source code files for examples presented in subsections are stored at 'samples/qt/OCCTOverview/code folder'.
|
||||||
Several utility classes that are not presented in the example window may be found in example source code files.
|
Several utility classes that are not presented in the example window may be found in example source code files.
|
||||||
|
|
||||||
The overall classes introduction may be found in the @ref occt_user_guides__foundation_classes "Foundation Classes" section of the documentation.
|
The overall classes introduction may be found in the @ref occt_user_guides__foundation_classes "Foundation Classes" section of the documentation.
|
||||||
|
@@ -1,48 +0,0 @@
|
|||||||
AdaptorCurve2d_AIS.cxx
|
|
||||||
AdaptorCurve2d_AIS.h
|
|
||||||
AdaptorCurve_AIS.cxx
|
|
||||||
AdaptorCurve_AIS.h
|
|
||||||
AdaptorPnt2d_AIS.cxx
|
|
||||||
AdaptorPnt2d_AIS.h
|
|
||||||
AdaptorVec_AIS.cxx
|
|
||||||
AdaptorVec_AIS.h
|
|
||||||
BaseSample.cxx
|
|
||||||
BaseSample.h
|
|
||||||
DataExchange.xml
|
|
||||||
DataExchangeSamples.cxx
|
|
||||||
DataExchangeSamples.h
|
|
||||||
Geometry.xml
|
|
||||||
GeometrySamples.cxx
|
|
||||||
GeometrySamples.h
|
|
||||||
MakeBottle.cxx
|
|
||||||
MakeBottle.h
|
|
||||||
Ocaf.xml
|
|
||||||
OcafSamples.cxx
|
|
||||||
OcafSamples.h
|
|
||||||
Sample2D_Face.cxx
|
|
||||||
Sample2D_Face.h
|
|
||||||
Sample2D_Image.cxx
|
|
||||||
Sample2D_Image.h
|
|
||||||
Sample2D_Markers.cxx
|
|
||||||
Sample2D_Markers.h
|
|
||||||
Samples.qrc
|
|
||||||
TOcafFunction_BoxDriver.cxx
|
|
||||||
TOcafFunction_BoxDriver.h
|
|
||||||
TOcafFunction_CutDriver.cxx
|
|
||||||
TOcafFunction_CutDriver.h
|
|
||||||
TOcafFunction_CylDriver.cxx
|
|
||||||
TOcafFunction_CylDriver.h
|
|
||||||
TOcaf_Application.cxx
|
|
||||||
TOcaf_Application.h
|
|
||||||
Topology.xml
|
|
||||||
TopologySamples.cxx
|
|
||||||
TopologySamples.h
|
|
||||||
Triangulation.xml
|
|
||||||
TriangulationSamples.cxx
|
|
||||||
TriangulationSamples.h
|
|
||||||
Viewer2d.xml
|
|
||||||
Viewer2dSamples.cxx
|
|
||||||
Viewer2dSamples.h
|
|
||||||
Viewer3d.xml
|
|
||||||
Viewer3dSamples.cxx
|
|
||||||
Viewer3dSamples.h
|
|
@@ -1,9 +1,16 @@
|
|||||||
project(AndroidQt)
|
project(AndroidQt)
|
||||||
|
|
||||||
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit_prepare_sample)
|
# Sample configuration
|
||||||
|
set (EXECUTABLE_PROJECT ON)
|
||||||
|
set (USE_QT ON)
|
||||||
|
set (RELATIVE_DIR "samples/qt")
|
||||||
|
set (TARGET_FOLDER "Samples")
|
||||||
|
|
||||||
|
include_directories("${CMAKE_BINARY_DIR}/${INSTALL_DIR_INCLUDE}/${RELATIVE_DIR}")
|
||||||
|
|
||||||
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit)
|
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit)
|
||||||
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit_prepare_sample)
|
|
||||||
|
|
||||||
ADD_DEFINITIONS(-DNO_Common_EXPORTS)
|
# Target-specific definitions
|
||||||
|
target_compile_definitions(AndroidQt PRIVATE -DNO_Common_EXPORTS)
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,17 +0,0 @@
|
|||||||
TKernel
|
|
||||||
TKMath
|
|
||||||
TKG2d
|
|
||||||
TKG3d
|
|
||||||
TKGeomBase
|
|
||||||
TKBRep
|
|
||||||
TKGeomAlgo
|
|
||||||
TKTopAlgo
|
|
||||||
TKShHealing
|
|
||||||
TKService
|
|
||||||
TKMesh
|
|
||||||
TKHLR
|
|
||||||
TKV3d
|
|
||||||
TKOpenGl
|
|
||||||
CSF_FreeImagePlus
|
|
||||||
CSF_FREETYPE
|
|
||||||
CSF_OpenGlLibs
|
|
20
samples/qt/AndroidQt/EXTERNLIB.cmake
Normal file
20
samples/qt/AndroidQt/EXTERNLIB.cmake
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
# External dependencies for AndroidQt sample
|
||||||
|
set(OCCT_AndroidQt_EXTERNAL_LIBS
|
||||||
|
TKernel
|
||||||
|
TKMath
|
||||||
|
TKG2d
|
||||||
|
TKG3d
|
||||||
|
TKGeomBase
|
||||||
|
TKBRep
|
||||||
|
TKGeomAlgo
|
||||||
|
TKTopAlgo
|
||||||
|
TKShHealing
|
||||||
|
TKService
|
||||||
|
TKMesh
|
||||||
|
TKHLR
|
||||||
|
TKV3d
|
||||||
|
TKOpenGl
|
||||||
|
CSF_FreeImagePlus
|
||||||
|
CSF_FREETYPE
|
||||||
|
CSF_OpenGlLibs
|
||||||
|
)
|
@@ -1,2 +0,0 @@
|
|||||||
EXTERNLIB
|
|
||||||
PACKAGES
|
|
14
samples/qt/AndroidQt/FILES.cmake
Normal file
14
samples/qt/AndroidQt/FILES.cmake
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# Source files for AndroidQt sample
|
||||||
|
set(OCCT_AndroidQt_FILES_LOCATION "${CMAKE_CURRENT_LIST_DIR}")
|
||||||
|
|
||||||
|
set(OCCT_AndroidQt_FILES
|
||||||
|
src/AndroidQt.cxx
|
||||||
|
src/AndroidQt.h
|
||||||
|
src/AndroidQt.qrc
|
||||||
|
src/AndroidQt_TouchParameters.cxx
|
||||||
|
src/AndroidQt_TouchParameters.h
|
||||||
|
src/AndroidQt_UserInteractionParameters.h
|
||||||
|
src/AndroidQt_Window.cxx
|
||||||
|
src/AndroidQt_Window.h
|
||||||
|
src/Main.cxx
|
||||||
|
)
|
@@ -1 +0,0 @@
|
|||||||
AndroidQt/src
|
|
4
samples/qt/AndroidQt/PACKAGES.cmake
Normal file
4
samples/qt/AndroidQt/PACKAGES.cmake
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Packages for AndroidQt sample
|
||||||
|
set(OCCT_AndroidQt_LIST_OF_PACKAGES
|
||||||
|
AndroidQt
|
||||||
|
)
|
@@ -1,9 +0,0 @@
|
|||||||
AndroidQt.cxx
|
|
||||||
AndroidQt.h
|
|
||||||
AndroidQt.qrc
|
|
||||||
AndroidQt_TouchParameters.cxx
|
|
||||||
AndroidQt_TouchParameters.h
|
|
||||||
AndroidQt_UserInteractionParameters.h
|
|
||||||
AndroidQt_Window.cxx
|
|
||||||
AndroidQt_Window.h
|
|
||||||
Main.cxx
|
|
@@ -1,17 +0,0 @@
|
|||||||
ApplicationCommon.cxx
|
|
||||||
ApplicationCommon.h
|
|
||||||
Common-icon.ts
|
|
||||||
Common-string.ts
|
|
||||||
CommonSample.h
|
|
||||||
DocumentCommon.cxx
|
|
||||||
DocumentCommon.h
|
|
||||||
Material.cxx
|
|
||||||
Material.h
|
|
||||||
MDIWindow.cxx
|
|
||||||
MDIWindow.h
|
|
||||||
OcctWindow.cxx
|
|
||||||
OcctWindow.h
|
|
||||||
Transparency.cxx
|
|
||||||
Transparency.h
|
|
||||||
View.cxx
|
|
||||||
View.h
|
|
@@ -1,8 +1,14 @@
|
|||||||
project(FuncDemo)
|
project(FuncDemo)
|
||||||
|
|
||||||
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit_prepare_sample)
|
# Sample configuration
|
||||||
|
set (EXECUTABLE_PROJECT ON)
|
||||||
|
set (USE_QT ON)
|
||||||
|
set (RELATIVE_DIR "samples/qt")
|
||||||
|
set (TARGET_FOLDER "Samples")
|
||||||
|
|
||||||
|
include_directories("${CMAKE_BINARY_DIR}/${INSTALL_DIR_INCLUDE}/${RELATIVE_DIR}")
|
||||||
|
|
||||||
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit)
|
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit)
|
||||||
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit_prepare_sample)
|
|
||||||
|
|
||||||
if (BUILD_Inspector)
|
if (BUILD_Inspector)
|
||||||
target_link_libraries (FuncDemo TKTInspector)
|
target_link_libraries (FuncDemo TKTInspector)
|
||||||
|
@@ -1,14 +0,0 @@
|
|||||||
TKBO
|
|
||||||
TKBRep
|
|
||||||
TKCAF
|
|
||||||
TKCDF
|
|
||||||
TKG2d
|
|
||||||
TKG3d
|
|
||||||
TKGeomAlgo
|
|
||||||
TKGeomBase
|
|
||||||
TKernel
|
|
||||||
TKLCAF
|
|
||||||
TKMath
|
|
||||||
TKMesh
|
|
||||||
TKPrim
|
|
||||||
TKTopAlgo
|
|
17
samples/qt/FuncDemo/EXTERNLIB.cmake
Normal file
17
samples/qt/FuncDemo/EXTERNLIB.cmake
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# External dependencies for FuncDemo sample
|
||||||
|
set(OCCT_FuncDemo_EXTERNAL_LIBS
|
||||||
|
TKBO
|
||||||
|
TKBRep
|
||||||
|
TKCAF
|
||||||
|
TKCDF
|
||||||
|
TKG2d
|
||||||
|
TKG3d
|
||||||
|
TKGeomAlgo
|
||||||
|
TKGeomBase
|
||||||
|
TKernel
|
||||||
|
TKLCAF
|
||||||
|
TKMath
|
||||||
|
TKMesh
|
||||||
|
TKPrim
|
||||||
|
TKTopAlgo
|
||||||
|
)
|
@@ -1,2 +0,0 @@
|
|||||||
EXTERNLIB
|
|
||||||
PACKAGES
|
|
33
samples/qt/FuncDemo/FILES.cmake
Normal file
33
samples/qt/FuncDemo/FILES.cmake
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
# Source files for FuncDemo sample
|
||||||
|
set(OCCT_FuncDemo_FILES_LOCATION "${CMAKE_CURRENT_LIST_DIR}")
|
||||||
|
|
||||||
|
set(OCCT_FuncDemo_FILES
|
||||||
|
src/BaseDriver.cpp
|
||||||
|
src/BaseDriver.h
|
||||||
|
src/CircleDriver.cpp
|
||||||
|
src/CircleDriver.h
|
||||||
|
src/ConeDriver.cpp
|
||||||
|
src/ConeDriver.h
|
||||||
|
src/CylinderDriver.cpp
|
||||||
|
src/CylinderDriver.h
|
||||||
|
src/edge.cpp
|
||||||
|
src/edge.h
|
||||||
|
src/FThread.cpp
|
||||||
|
src/FThread.h
|
||||||
|
src/FuncDemo.qrc
|
||||||
|
src/graphwidget.cpp
|
||||||
|
src/graphwidget.h
|
||||||
|
src/main.cpp
|
||||||
|
src/mainwindow.cpp
|
||||||
|
src/mainwindow.h
|
||||||
|
src/node.cpp
|
||||||
|
src/node.h
|
||||||
|
src/PointDriver.cpp
|
||||||
|
src/PointDriver.h
|
||||||
|
src/PrismDriver.cpp
|
||||||
|
src/PrismDriver.h
|
||||||
|
src/ShapeSaverDriver.cpp
|
||||||
|
src/ShapeSaverDriver.h
|
||||||
|
src/SimpleDriver.cpp
|
||||||
|
src/SimpleDriver.h
|
||||||
|
)
|
@@ -1 +0,0 @@
|
|||||||
FuncDemo/src
|
|
4
samples/qt/FuncDemo/PACKAGES.cmake
Normal file
4
samples/qt/FuncDemo/PACKAGES.cmake
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Packages for FuncDemo sample
|
||||||
|
set(OCCT_FuncDemo_LIST_OF_PACKAGES
|
||||||
|
FuncDemo
|
||||||
|
)
|
@@ -1,28 +0,0 @@
|
|||||||
BaseDriver.cpp
|
|
||||||
BaseDriver.h
|
|
||||||
CircleDriver.cpp
|
|
||||||
CircleDriver.h
|
|
||||||
ConeDriver.cpp
|
|
||||||
ConeDriver.h
|
|
||||||
CylinderDriver.cpp
|
|
||||||
CylinderDriver.h
|
|
||||||
edge.cpp
|
|
||||||
edge.h
|
|
||||||
FILES
|
|
||||||
FThread.cpp
|
|
||||||
FThread.h
|
|
||||||
graphwidget.cpp
|
|
||||||
graphwidget.h
|
|
||||||
main.cpp
|
|
||||||
mainwindow.cpp
|
|
||||||
mainwindow.h
|
|
||||||
node.cpp
|
|
||||||
node.h
|
|
||||||
PointDriver.cpp
|
|
||||||
PointDriver.h
|
|
||||||
PrismDriver.cpp
|
|
||||||
PrismDriver.h
|
|
||||||
ShapeSaverDriver.cpp
|
|
||||||
ShapeSaverDriver.h
|
|
||||||
SimpleDriver.cpp
|
|
||||||
SimpleDriver.h
|
|
@@ -1,11 +1,18 @@
|
|||||||
project(IESample)
|
project(IESample)
|
||||||
|
|
||||||
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit_prepare_sample)
|
# Sample configuration
|
||||||
|
set (EXECUTABLE_PROJECT ON)
|
||||||
|
set (USE_QT ON)
|
||||||
|
set (RELATIVE_DIR "samples/qt")
|
||||||
|
set (TARGET_FOLDER "Samples")
|
||||||
|
|
||||||
|
include_directories("${CMAKE_BINARY_DIR}/${INSTALL_DIR_INCLUDE}/${RELATIVE_DIR}")
|
||||||
include_directories("${OCCT_ROOT_DIR}/${RELATIVE_DIR}/Interface/src")
|
include_directories("${OCCT_ROOT_DIR}/${RELATIVE_DIR}/Interface/src")
|
||||||
include_directories("${OCCT_ROOT_DIR}/${RELATIVE_DIR}/Common/src")
|
include_directories("${OCCT_ROOT_DIR}/${RELATIVE_DIR}/Common/src")
|
||||||
|
|
||||||
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit)
|
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit)
|
||||||
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit_prepare_sample)
|
|
||||||
|
|
||||||
ADD_DEFINITIONS(-DNO_COMMONSAMPLE_EXPORTS -DNO_IESAMPLE_EXPORTS)
|
# Target-specific definitions
|
||||||
|
target_compile_definitions(IESample PRIVATE -DNO_COMMONSAMPLE_EXPORTS -DNO_IESAMPLE_EXPORTS)
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,26 +0,0 @@
|
|||||||
TKBRep
|
|
||||||
TKBool
|
|
||||||
TKBO
|
|
||||||
TKCDF
|
|
||||||
TKFillet
|
|
||||||
TKG2d
|
|
||||||
TKG3d
|
|
||||||
TKGeomAlgo
|
|
||||||
TKGeomBase
|
|
||||||
TKHLR
|
|
||||||
TKDEIGES
|
|
||||||
TKernel
|
|
||||||
TKMath
|
|
||||||
TKMesh
|
|
||||||
TKOffset
|
|
||||||
TKOpenGl
|
|
||||||
TKPrim
|
|
||||||
TKShHealing
|
|
||||||
TKService
|
|
||||||
TKDESTEP
|
|
||||||
TKDESTL
|
|
||||||
TKTopAlgo
|
|
||||||
TKV3d
|
|
||||||
TKDEVRML
|
|
||||||
TKXSBase
|
|
||||||
|
|
28
samples/qt/IESample/EXTERNLIB.cmake
Normal file
28
samples/qt/IESample/EXTERNLIB.cmake
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
# External dependencies for IESample sample
|
||||||
|
set(OCCT_IESample_EXTERNAL_LIBS
|
||||||
|
TKBRep
|
||||||
|
TKBool
|
||||||
|
TKBO
|
||||||
|
TKCDF
|
||||||
|
TKFillet
|
||||||
|
TKG2d
|
||||||
|
TKG3d
|
||||||
|
TKGeomAlgo
|
||||||
|
TKGeomBase
|
||||||
|
TKHLR
|
||||||
|
TKDEIGES
|
||||||
|
TKernel
|
||||||
|
TKMath
|
||||||
|
TKMesh
|
||||||
|
TKOffset
|
||||||
|
TKOpenGl
|
||||||
|
TKPrim
|
||||||
|
TKShHealing
|
||||||
|
TKService
|
||||||
|
TKDESTEP
|
||||||
|
TKDESTL
|
||||||
|
TKTopAlgo
|
||||||
|
TKV3d
|
||||||
|
TKDEVRML
|
||||||
|
TKXSBase
|
||||||
|
)
|
@@ -1,2 +0,0 @@
|
|||||||
EXTERNLIB
|
|
||||||
PACKAGES
|
|
29
samples/qt/IESample/FILES.cmake
Normal file
29
samples/qt/IESample/FILES.cmake
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
# Source files for IESample sample
|
||||||
|
set(OCCT_IESample_FILES_LOCATION "${CMAKE_CURRENT_LIST_DIR}")
|
||||||
|
|
||||||
|
set(OCCT_IESample_FILES
|
||||||
|
src/Main.cxx
|
||||||
|
../Common/src/ApplicationCommon.cxx
|
||||||
|
../Common/src/ApplicationCommon.h
|
||||||
|
../Common/src/Common-icon.ts
|
||||||
|
../Common/src/Common-string.ts
|
||||||
|
../Common/src/CommonSample.h
|
||||||
|
../Common/src/DocumentCommon.cxx
|
||||||
|
../Common/src/DocumentCommon.h
|
||||||
|
../Common/src/Material.cxx
|
||||||
|
../Common/src/Material.h
|
||||||
|
../Common/src/MDIWindow.cxx
|
||||||
|
../Common/src/MDIWindow.h
|
||||||
|
../Common/src/OcctWindow.cxx
|
||||||
|
../Common/src/OcctWindow.h
|
||||||
|
../Common/src/Transparency.cxx
|
||||||
|
../Common/src/Transparency.h
|
||||||
|
../Common/src/View.cxx
|
||||||
|
../Common/src/View.h
|
||||||
|
../Interface/src/Application.cxx
|
||||||
|
../Interface/src/Application.h
|
||||||
|
../Interface/src/IESample.h
|
||||||
|
../Interface/src/Interface-string.ts
|
||||||
|
../Interface/src/Translate.cxx
|
||||||
|
../Interface/src/Translate.h
|
||||||
|
)
|
@@ -1,3 +0,0 @@
|
|||||||
IESample/src
|
|
||||||
Common/src
|
|
||||||
Interface/src
|
|
4
samples/qt/IESample/PACKAGES.cmake
Normal file
4
samples/qt/IESample/PACKAGES.cmake
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Packages for IESample sample
|
||||||
|
set(OCCT_IESample_LIST_OF_PACKAGES
|
||||||
|
IESample
|
||||||
|
)
|
@@ -1 +0,0 @@
|
|||||||
Main.cxx
|
|
@@ -1,6 +0,0 @@
|
|||||||
Application.cxx
|
|
||||||
Application.h
|
|
||||||
IESample.h
|
|
||||||
Interface-string.ts
|
|
||||||
Translate.cxx
|
|
||||||
Translate.h
|
|
BIN
samples/qt/OCCTOverview/.DS_Store
vendored
Normal file
BIN
samples/qt/OCCTOverview/.DS_Store
vendored
Normal file
Binary file not shown.
@@ -1,8 +1,18 @@
|
|||||||
project(OCCTOverview)
|
project(OCCTOverview)
|
||||||
|
|
||||||
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit_prepare_sample)
|
# Sample configuration
|
||||||
include_directories("${OCCT_ROOT_DIR}/${RELATIVE_DIR}/../OCCTOverview/code")
|
set (EXECUTABLE_PROJECT ON)
|
||||||
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit)
|
set (USE_QT ON)
|
||||||
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit_prepare_sample)
|
set (RELATIVE_DIR "samples/qt")
|
||||||
|
set (TARGET_FOLDER "Samples")
|
||||||
|
|
||||||
ADD_DEFINITIONS(-DNO_COMMONSAMPLE_EXPORTS -DNO_IESAMPLE_EXPORTS)
|
include_directories("${CMAKE_BINARY_DIR}/${INSTALL_DIR_INCLUDE}/${RELATIVE_DIR}")
|
||||||
|
include_directories("${OCCT_ROOT_DIR}/${RELATIVE_DIR}/Common/src")
|
||||||
|
include_directories("${OCCT_ROOT_DIR}/${RELATIVE_DIR}/Interface/src")
|
||||||
|
include_directories("${OCCT_ROOT_DIR}/${RELATIVE_DIR}/OCCTOverview/src")
|
||||||
|
include_directories("${OCCT_ROOT_DIR}/${RELATIVE_DIR}/OCCTOverview/code")
|
||||||
|
|
||||||
|
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit)
|
||||||
|
|
||||||
|
# Target-specific definitions
|
||||||
|
target_compile_definitions(OCCTOverview PRIVATE -DNO_COMMONSAMPLE_EXPORTS -DNO_IESAMPLE_EXPORTS)
|
||||||
|
@@ -1,30 +0,0 @@
|
|||||||
TKBRep
|
|
||||||
TKBin
|
|
||||||
TKBool
|
|
||||||
TKBO
|
|
||||||
TKCDF
|
|
||||||
TKFillet
|
|
||||||
TKG2d
|
|
||||||
TKG3d
|
|
||||||
TKGeomAlgo
|
|
||||||
TKGeomBase
|
|
||||||
TKernel
|
|
||||||
TKHLR
|
|
||||||
TKDEIGES
|
|
||||||
TKMath
|
|
||||||
TKMesh
|
|
||||||
TKOffset
|
|
||||||
TKOpenGl
|
|
||||||
TKPrim
|
|
||||||
TKService
|
|
||||||
TKShHealing
|
|
||||||
TKDESTEP
|
|
||||||
TKDESTL
|
|
||||||
TKTopAlgo
|
|
||||||
TKV3d
|
|
||||||
TKDEVRML
|
|
||||||
TKXSBase
|
|
||||||
TKLCAF
|
|
||||||
TKCAF
|
|
||||||
TKVCAF
|
|
||||||
TKXml
|
|
33
samples/qt/OCCTOverview/EXTERNLIB.cmake
Normal file
33
samples/qt/OCCTOverview/EXTERNLIB.cmake
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
# External dependencies for OCCTOverview sample
|
||||||
|
set(OCCT_OCCTOverview_EXTERNAL_LIBS
|
||||||
|
TKBRep
|
||||||
|
TKBin
|
||||||
|
TKBool
|
||||||
|
TKBO
|
||||||
|
TKCDF
|
||||||
|
TKFillet
|
||||||
|
TKG2d
|
||||||
|
TKG3d
|
||||||
|
TKGeomAlgo
|
||||||
|
TKGeomBase
|
||||||
|
TKernel
|
||||||
|
TKHLR
|
||||||
|
TKDEIGES
|
||||||
|
TKMath
|
||||||
|
TKMesh
|
||||||
|
TKOffset
|
||||||
|
TKOpenGl
|
||||||
|
TKPrim
|
||||||
|
TKService
|
||||||
|
TKShHealing
|
||||||
|
TKDESTEP
|
||||||
|
TKDESTL
|
||||||
|
TKTopAlgo
|
||||||
|
TKV3d
|
||||||
|
TKDEVRML
|
||||||
|
TKXSBase
|
||||||
|
TKLCAF
|
||||||
|
TKCAF
|
||||||
|
TKVCAF
|
||||||
|
TKXml
|
||||||
|
)
|
@@ -1,2 +0,0 @@
|
|||||||
EXTERNLIB
|
|
||||||
PACKAGES
|
|
72
samples/qt/OCCTOverview/FILES.cmake
Normal file
72
samples/qt/OCCTOverview/FILES.cmake
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
# Source files for OCCTOverview sample
|
||||||
|
set(OCCT_OCCTOverview_FILES_LOCATION "${CMAKE_CURRENT_LIST_DIR}")
|
||||||
|
|
||||||
|
set(OCCT_OCCTOverview_FILES
|
||||||
|
src/ApplicationCommon.cxx
|
||||||
|
src/ApplicationCommon.h
|
||||||
|
src/CommonSample.h
|
||||||
|
src/DocumentCommon.cxx
|
||||||
|
src/DocumentCommon.h
|
||||||
|
src/GeomWidget.cxx
|
||||||
|
src/GeomWidget.h
|
||||||
|
src/Main.cxx
|
||||||
|
src/OcctHighlighter.cxx
|
||||||
|
src/OcctHighlighter.h
|
||||||
|
src/OcctWindow.cxx
|
||||||
|
src/OcctWindow.h
|
||||||
|
src/OCCTOverview.qrc
|
||||||
|
src/TranslateDialog.h
|
||||||
|
src/TranslateDialog.cxx
|
||||||
|
src/Transparency.cxx
|
||||||
|
src/Transparency.h
|
||||||
|
src/View.cxx
|
||||||
|
src/View.h
|
||||||
|
code/AdaptorCurve2d_AIS.cxx
|
||||||
|
code/AdaptorCurve2d_AIS.h
|
||||||
|
code/AdaptorCurve_AIS.cxx
|
||||||
|
code/AdaptorCurve_AIS.h
|
||||||
|
code/AdaptorPnt2d_AIS.cxx
|
||||||
|
code/AdaptorPnt2d_AIS.h
|
||||||
|
code/AdaptorVec_AIS.cxx
|
||||||
|
code/AdaptorVec_AIS.h
|
||||||
|
code/BaseSample.cxx
|
||||||
|
code/BaseSample.h
|
||||||
|
code/DataExchange.xml
|
||||||
|
code/DataExchangeSamples.cxx
|
||||||
|
code/DataExchangeSamples.h
|
||||||
|
code/Geometry.xml
|
||||||
|
code/GeometrySamples.cxx
|
||||||
|
code/GeometrySamples.h
|
||||||
|
code/MakeBottle.cxx
|
||||||
|
code/MakeBottle.h
|
||||||
|
code/Ocaf.xml
|
||||||
|
code/OcafSamples.cxx
|
||||||
|
code/OcafSamples.h
|
||||||
|
code/Sample2D_Face.cxx
|
||||||
|
code/Sample2D_Face.h
|
||||||
|
code/Sample2D_Image.cxx
|
||||||
|
code/Sample2D_Image.h
|
||||||
|
code/Sample2D_Markers.cxx
|
||||||
|
code/Sample2D_Markers.h
|
||||||
|
code/Samples.qrc
|
||||||
|
code/TOcafFunction_BoxDriver.cxx
|
||||||
|
code/TOcafFunction_BoxDriver.h
|
||||||
|
code/TOcafFunction_CutDriver.cxx
|
||||||
|
code/TOcafFunction_CutDriver.h
|
||||||
|
code/TOcafFunction_CylDriver.cxx
|
||||||
|
code/TOcafFunction_CylDriver.h
|
||||||
|
code/TOcaf_Application.cxx
|
||||||
|
code/TOcaf_Application.h
|
||||||
|
code/Topology.xml
|
||||||
|
code/TopologySamples.cxx
|
||||||
|
code/TopologySamples.h
|
||||||
|
code/Triangulation.xml
|
||||||
|
code/TriangulationSamples.cxx
|
||||||
|
code/TriangulationSamples.h
|
||||||
|
code/Viewer2d.xml
|
||||||
|
code/Viewer2dSamples.cxx
|
||||||
|
code/Viewer2dSamples.h
|
||||||
|
code/Viewer3d.xml
|
||||||
|
code/Viewer3dSamples.cxx
|
||||||
|
code/Viewer3dSamples.h
|
||||||
|
)
|
@@ -17,19 +17,19 @@ isEmpty(CSF_OCCTSamplesPath) {
|
|||||||
|
|
||||||
|
|
||||||
HEADERS = ./src/*.h \
|
HEADERS = ./src/*.h \
|
||||||
$${SAMPLESROOT}/../OCCTOverview/code/*.h
|
./code/*.h
|
||||||
|
|
||||||
SOURCES = ./src/*.cxx \
|
SOURCES = ./src/*.cxx \
|
||||||
$${SAMPLESROOT}/../OCCTOverview/code/*.cxx
|
./code/*.cxx
|
||||||
|
|
||||||
RESOURCES += $${SAMPLESROOT}/../OCCTOverview/code/Samples.qrc
|
RESOURCES += ./code/Samples.qrc
|
||||||
RESOURCES += ./src/OCCTOverview.qrc
|
RESOURCES += ./src/OCCTOverview.qrc
|
||||||
|
|
||||||
RES_DIR = $$quote($$(RES_DIR))
|
RES_DIR = $$quote($$(RES_DIR))
|
||||||
|
|
||||||
INCLUDEPATH += $$quote($$(CSF_SampleSources))
|
INCLUDEPATH += $$quote($$(CSF_SampleSources))
|
||||||
INCLUDEPATH += $$quote($$(CSF_OCCTIncludePath)) \
|
INCLUDEPATH += $$quote($$(CSF_OCCTIncludePath)) \
|
||||||
$${SAMPLESROOT}/../OCCTOverview/code
|
$${SAMPLESROOT}/qt/OCCTOverview/code
|
||||||
|
|
||||||
|
|
||||||
OCCT_DEFINES = $$(CSF_DEFINES)
|
OCCT_DEFINES = $$(CSF_DEFINES)
|
||||||
|
@@ -1,2 +0,0 @@
|
|||||||
OCCTOverview/src
|
|
||||||
/../OCCTOverview/code
|
|
4
samples/qt/OCCTOverview/PACKAGES.cmake
Normal file
4
samples/qt/OCCTOverview/PACKAGES.cmake
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Packages for OCCTOverview sample
|
||||||
|
set(OCCT_OCCTOverview_LIST_OF_PACKAGES
|
||||||
|
OCCTOverview
|
||||||
|
)
|
@@ -329,7 +329,7 @@ TCollection_AsciiString ApplicationCommonWindow::getSampleSourceDir()
|
|||||||
TCollection_AsciiString aCasRoot = OSD_Environment("CASROOT").Value();
|
TCollection_AsciiString aCasRoot = OSD_Environment("CASROOT").Value();
|
||||||
if (!aCasRoot.IsEmpty())
|
if (!aCasRoot.IsEmpty())
|
||||||
{
|
{
|
||||||
aSampleSourceDir = aCasRoot + "/samples/OCCTOverview/code";
|
aSampleSourceDir = aCasRoot + "/samples/qt/OCCTOverview/code";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return aSampleSourceDir;
|
return aSampleSourceDir;
|
||||||
|
@@ -1,19 +0,0 @@
|
|||||||
ApplicationCommon.cxx
|
|
||||||
ApplicationCommon.h
|
|
||||||
CommonSample.h
|
|
||||||
DocumentCommon.cxx
|
|
||||||
DocumentCommon.h
|
|
||||||
GeomWidget.cxx
|
|
||||||
GeomWidget.h
|
|
||||||
Main.cxx
|
|
||||||
OcctHighlighter.cxx
|
|
||||||
OcctHighlighter.h
|
|
||||||
OcctWindow.cxx
|
|
||||||
OcctWindow.h
|
|
||||||
OCCTOverview.qrc
|
|
||||||
TranslateDialog.h
|
|
||||||
TranslateDialog.cxx
|
|
||||||
Transparency.cxx
|
|
||||||
Transparency.h
|
|
||||||
View.cxx
|
|
||||||
View.h
|
|
@@ -1,11 +1,18 @@
|
|||||||
project(Tutorial)
|
project(Tutorial)
|
||||||
|
|
||||||
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit_prepare_sample)
|
# Sample configuration
|
||||||
|
set (EXECUTABLE_PROJECT ON)
|
||||||
|
set (USE_QT ON)
|
||||||
|
set (RELATIVE_DIR "samples/qt")
|
||||||
|
set (TARGET_FOLDER "Samples")
|
||||||
|
|
||||||
|
include_directories("${CMAKE_BINARY_DIR}/${INSTALL_DIR_INCLUDE}/${RELATIVE_DIR}")
|
||||||
include_directories("${OCCT_ROOT_DIR}/${RELATIVE_DIR}/Interface/src")
|
include_directories("${OCCT_ROOT_DIR}/${RELATIVE_DIR}/Interface/src")
|
||||||
include_directories("${OCCT_ROOT_DIR}/${RELATIVE_DIR}/Common/src")
|
include_directories("${OCCT_ROOT_DIR}/${RELATIVE_DIR}/Common/src")
|
||||||
|
|
||||||
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit)
|
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit)
|
||||||
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit_prepare_sample)
|
|
||||||
|
|
||||||
ADD_DEFINITIONS(-DNO_COMMONSAMPLE_EXPORTS -DNO_IESAMPLE_EXPORTS)
|
# Target-specific definitions
|
||||||
|
target_compile_definitions(Tutorial PRIVATE -DNO_COMMONSAMPLE_EXPORTS -DNO_IESAMPLE_EXPORTS)
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,26 +0,0 @@
|
|||||||
TKBRep
|
|
||||||
TKBool
|
|
||||||
TKBO
|
|
||||||
TKCDF
|
|
||||||
TKFillet
|
|
||||||
TKG2d
|
|
||||||
TKG3d
|
|
||||||
TKGeomAlgo
|
|
||||||
TKGeomBase
|
|
||||||
TKernel
|
|
||||||
TKHLR
|
|
||||||
TKDEIGES
|
|
||||||
TKMath
|
|
||||||
TKMesh
|
|
||||||
TKOffset
|
|
||||||
TKOpenGl
|
|
||||||
TKPrim
|
|
||||||
TKService
|
|
||||||
TKShHealing
|
|
||||||
TKDESTEP
|
|
||||||
TKDESTL
|
|
||||||
TKTopAlgo
|
|
||||||
TKV3d
|
|
||||||
TKDEVRML
|
|
||||||
TKXSBase
|
|
||||||
|
|
28
samples/qt/Tutorial/EXTERNLIB.cmake
Normal file
28
samples/qt/Tutorial/EXTERNLIB.cmake
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
# External dependencies for Tutorial sample
|
||||||
|
set(OCCT_Tutorial_EXTERNAL_LIBS
|
||||||
|
TKBRep
|
||||||
|
TKBool
|
||||||
|
TKBO
|
||||||
|
TKCDF
|
||||||
|
TKFillet
|
||||||
|
TKG2d
|
||||||
|
TKG3d
|
||||||
|
TKGeomAlgo
|
||||||
|
TKGeomBase
|
||||||
|
TKernel
|
||||||
|
TKHLR
|
||||||
|
TKDEIGES
|
||||||
|
TKMath
|
||||||
|
TKMesh
|
||||||
|
TKOffset
|
||||||
|
TKOpenGl
|
||||||
|
TKPrim
|
||||||
|
TKService
|
||||||
|
TKShHealing
|
||||||
|
TKDESTEP
|
||||||
|
TKDESTL
|
||||||
|
TKTopAlgo
|
||||||
|
TKV3d
|
||||||
|
TKDEVRML
|
||||||
|
TKXSBase
|
||||||
|
)
|
@@ -1,2 +0,0 @@
|
|||||||
EXTERNLIB
|
|
||||||
PACKAGES
|
|
36
samples/qt/Tutorial/FILES.cmake
Normal file
36
samples/qt/Tutorial/FILES.cmake
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
# Source files for Tutorial sample
|
||||||
|
set(OCCT_Tutorial_FILES_LOCATION "${CMAKE_CURRENT_LIST_DIR}")
|
||||||
|
|
||||||
|
set(OCCT_Tutorial_FILES
|
||||||
|
src/ApplicationTut.cxx
|
||||||
|
src/ApplicationTut.h
|
||||||
|
src/DocumentTut.cxx
|
||||||
|
src/DocumentTut.h
|
||||||
|
src/Main.cxx
|
||||||
|
src/MakeBottle.cxx
|
||||||
|
src/Tutorial-icon.ts
|
||||||
|
src/Tutorial-string.ts
|
||||||
|
../Common/src/ApplicationCommon.cxx
|
||||||
|
../Common/src/ApplicationCommon.h
|
||||||
|
../Common/src/Common-icon.ts
|
||||||
|
../Common/src/Common-string.ts
|
||||||
|
../Common/src/CommonSample.h
|
||||||
|
../Common/src/DocumentCommon.cxx
|
||||||
|
../Common/src/DocumentCommon.h
|
||||||
|
../Common/src/Material.cxx
|
||||||
|
../Common/src/Material.h
|
||||||
|
../Common/src/MDIWindow.cxx
|
||||||
|
../Common/src/MDIWindow.h
|
||||||
|
../Common/src/OcctWindow.cxx
|
||||||
|
../Common/src/OcctWindow.h
|
||||||
|
../Common/src/Transparency.cxx
|
||||||
|
../Common/src/Transparency.h
|
||||||
|
../Common/src/View.cxx
|
||||||
|
../Common/src/View.h
|
||||||
|
../Interface/src/Application.cxx
|
||||||
|
../Interface/src/Application.h
|
||||||
|
../Interface/src/IESample.h
|
||||||
|
../Interface/src/Interface-string.ts
|
||||||
|
../Interface/src/Translate.cxx
|
||||||
|
../Interface/src/Translate.h
|
||||||
|
)
|
@@ -1,2 +0,0 @@
|
|||||||
Tutorial/src
|
|
||||||
Common/src
|
|
4
samples/qt/Tutorial/PACKAGES.cmake
Normal file
4
samples/qt/Tutorial/PACKAGES.cmake
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Packages for Tutorial sample
|
||||||
|
set(OCCT_Tutorial_LIST_OF_PACKAGES
|
||||||
|
Tutorial
|
||||||
|
)
|
@@ -1,8 +0,0 @@
|
|||||||
ApplicationTut.cxx
|
|
||||||
ApplicationTut.h
|
|
||||||
DocumentTut.cxx
|
|
||||||
DocumentTut.h
|
|
||||||
Main.cxx
|
|
||||||
MakeBottle.cxx
|
|
||||||
Tutorial-icon.ts
|
|
||||||
Tutorial-string.ts
|
|
Reference in New Issue
Block a user