* cMake: Add base support for LibPack3 Minor changes to FreeCAD source code to support compiling with Qt 6.5 on MSVC, and changes to cMake setup to support the new Libpack. * NETGENPlugin: Fix compilation with MSVC and OCCT 7.8 * Material: Switch to Wrapped_ParseTupleAndKeywords for /fpermissive- on MSVC * Base: Prevent accidental definition of MIN and MAX by MSVC * cMake: Prevent accidentally finding an old LibPack * Material: Wrap another ParseTuple call * OCCT: Modify includes for 7.8.x * Part: Change TNP code to use Wrapped_ParseTupleAndArgs * Spreadsheet: Workaround for MSVC macro pollution * Mesh: Workaround for MSVC macro pollution * Base: Remove extra MSVC flag (moved to CMake) * Tests: Fix compiling with /permissive- * FEM: Fix Qt warnings about duplicate element names * cMake: Ensure major version numbers are set * Address review comments. * cMake: Further tweaks for LibPack3 * cMake: Modify specification of compiler flags for MSVC * Main: Remove QtQuick testing code * cmake: Find Boost before SMESH (which uses it) * Fixes for LibPack2 * cMake: Another try at importinhg VTK cleanly
39 lines
1.7 KiB
CMake
39 lines
1.7 KiB
CMake
set(ENV{PATH} "${FREECAD_LIBPACK_DIR};$ENV{PATH}")
|
|
list(PREPEND CMAKE_PREFIX_PATH "${FREECAD_LIBPACK_DIR}")
|
|
|
|
set (Python3_EXECUTABLE ${FREECAD_LIBPACK_DIR}/bin/python.exe)
|
|
find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
|
|
|
|
# Make sure we are using the static versions of Boost here: the LibPack includes both
|
|
set(Boost_USE_STATIC_LIBS OFF)
|
|
find_package(Boost COMPONENTS filesystem program_options regex system thread date_time REQUIRED PATHS ${FREECAD_LIBPACK_DIR}/lib/cmake NO_DEFAULT_PATH)
|
|
|
|
set(OCE_DIR ${FREECAD_LIBPACK_DIR}/lib/cmake CACHE PATH "" FORCE)
|
|
|
|
set(SWIG_EXECUTABLE ${FREECAD_LIBPACK_DIR}/bin/swig.exe CACHE FILEPATH "Swig" FORCE)
|
|
|
|
find_package(Qt6 REQUIRED PATHS ${FREECAD_LIBPACK_DIR}/lib/cmake NO_DEFAULT_PATH)
|
|
message(STATUS "Found LibPack 3 Qt ${Qt6_VERSION}")
|
|
|
|
find_package(XercesC REQUIRED PATHS ${FREECAD_LIBPACK_DIR}/cmake NO_DEFAULT_PATH)
|
|
message(STATUS "Found LibPack 3 XercesC ${XercesC_VERSION}")
|
|
|
|
find_package(yaml-cpp REQUIRED PATHS ${FREECAD_LIBPACK_DIR}/lib/cmake NO_DEFAULT_PATH)
|
|
message(STATUS "Found LibPack 3 yaml-cpp ${XercesC_VERSION}")
|
|
|
|
find_package(Coin REQUIRED PATHS ${FREECAD_LIBPACK_DIR}/lib/cmake NO_DEFAULT_PATH)
|
|
message(STATUS "Found LibPack 3 Coin ${Coin_VERSION}")
|
|
# For compatibility with the rest of the cMake scripts:
|
|
set (COIN3D_FOUND TRUE)
|
|
|
|
set (NETGENDATA ${FREECAD_LIBPACK_DIR}/include/netgen)
|
|
|
|
if (FREECAD_USE_FREETYPE)
|
|
find_package(freetype REQUIRED PATHS ${FREECAD_LIBPACK_DIR}/lib/cmake NO_DEFAULT_PATH)
|
|
message(STATUS "Found LibPack 3 Freetype ${freetype_VERSION} library from ${freetype_LIBRARY}")
|
|
endif (FREECAD_USE_FREETYPE)
|
|
|
|
set (HDF5_DIR ${FREECAD_LIBPACK_DIR}/share/cmake)
|
|
|
|
link_directories (${FREECAD_LIBPACK_DIR}/lib)
|