mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +03:00
0027398: Integrate Qt Browser Widget to Open CASCADE Technology
The following implementation has been made: - CMake procedure is extended to compile Qt tools. This is optional and is handled by USE_QT_TOOLS option(OFF by default) - It is possible to build Qt tools using Qt5 or Qt4, it is settled with USE_QT4 option. - Sample of DFBrowser tool is available in samples/tools/TInspectorEXE. It is build with tools, executable is placed in binaries. To start the sample, use dfbrowser.bat command. - DFBrowser tool may be started from DRAW
This commit is contained in:
33
samples/tools/TStandalone/adm/cmake/standalone_macros.cmake
Normal file
33
samples/tools/TStandalone/adm/cmake/standalone_macros.cmake
Normal file
@@ -0,0 +1,33 @@
|
||||
#freeimage
|
||||
|
||||
macro (FIND_SOURCES_AND_HEADERS_FILES CURRENT_SOURCES_DIR SOURCE_FILES HEADER_FILES)
|
||||
if (EXISTS "${CURRENT_SOURCES_DIR}/FILES")
|
||||
file (STRINGS "${CURRENT_SOURCES_DIR}/FILES" HEADER_FILES_H REGEX ".+[.]h")
|
||||
file (STRINGS "${CURRENT_SOURCES_DIR}/FILES" SOURCE_FILES_C REGEX ".+[.]c")
|
||||
|
||||
if (NOT "${HEADER_FILES_H}" STREQUAL "")
|
||||
foreach (ORIGIN_FILE ${HEADER_FILES_H})
|
||||
list (APPEND HEADER_FILES_ ${CURRENT_SOURCES_DIR}/${ORIGIN_FILE})
|
||||
endforeach()
|
||||
|
||||
#message("${HEADER_FILES_}")
|
||||
set(${HEADER_FILES} ${HEADER_FILES_})
|
||||
endif()
|
||||
|
||||
if(NOT "${SOURCE_FILES_C}" STREQUAL "")
|
||||
foreach (ORIGIN_FILE ${SOURCE_FILES_C})
|
||||
list (APPEND SOURCE_FILES_ ${CURRENT_SOURCES_DIR}/${ORIGIN_FILE})
|
||||
endforeach()
|
||||
|
||||
#message("${SOURCE_FILES_}")
|
||||
set(${SOURCE_FILES} ${SOURCE_FILES_})
|
||||
endif()
|
||||
|
||||
#set(${HEADER_FILES} ${HEADER_FILES_H})
|
||||
#set(${SOURCE_FILES} ${SOURCE_FILES_C})
|
||||
|
||||
else()
|
||||
message(WARNING "file FILES is absent in $TARGET")
|
||||
endif()
|
||||
|
||||
endmacro()
|
Reference in New Issue
Block a user