mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
- 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
19 lines
544 B
CMake
19 lines
544 B
CMake
project(Tutorial)
|
|
|
|
# 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}/Common/src")
|
|
|
|
OCCT_INCLUDE_CMAKE_FILE (adm/cmake/occt_toolkit)
|
|
|
|
# Target-specific definitions
|
|
target_compile_definitions(Tutorial PRIVATE -DNO_COMMONSAMPLE_EXPORTS -DNO_IESAMPLE_EXPORTS)
|
|
|
|
|