move build specifier in own cMake group
This commit is contained in:
parent
c24a5161fc
commit
ec2198107b
16
src/3rdParty/CMakeLists.txt
vendored
16
src/3rdParty/CMakeLists.txt
vendored
|
@ -1,21 +1,21 @@
|
|||
|
||||
if(FREECAD_BUILD_CAM)
|
||||
if(BUILD_CAM)
|
||||
add_subdirectory(ANN)
|
||||
endif(FREECAD_BUILD_CAM)
|
||||
endif(BUILD_CAM)
|
||||
|
||||
if(FREECAD_BUILD_GUI AND NOT FREECAD_USE_EXTERNAL_PIVY)
|
||||
if(BUILD_GUI AND NOT FREECAD_USE_EXTERNAL_PIVY)
|
||||
if(FREECAD_LIBPACK_CHECKFILE6X)
|
||||
add_subdirectory(Pivy)
|
||||
elseif(FREECAD_LIBPACK_CHECKFILE7X)
|
||||
add_subdirectory(Pivy-0.5)
|
||||
#elseif(FREECAD_BUILD_GUI AND FREECAD_LIBPACK_CHECKCUSTOM)
|
||||
#elseif(BUILD_GUI AND FREECAD_LIBPACK_CHECKCUSTOM)
|
||||
# find_path(COIN_VERSION3 Inventor/scxml/ScXML.h ${COIN3D_INCLUDE_DIR})
|
||||
# if (COIN_VERSION3)
|
||||
# add_subdirectory(Pivy-0.5)
|
||||
# else (COIN_VERSION3)
|
||||
# add_subdirectory(Pivy)
|
||||
# endif(COIN_VERSION3)
|
||||
#endif(FREECAD_BUILD_GUI AND FREECAD_LIBPACK_CHECKFILE6X)
|
||||
#endif(BUILD_GUI AND FREECAD_LIBPACK_CHECKFILE6X)
|
||||
#if (MINGW)
|
||||
# add_subdirectory(Pivy)
|
||||
#endif(MINGW)
|
||||
|
@ -32,10 +32,10 @@ if(FREECAD_BUILD_GUI AND NOT FREECAD_USE_EXTERNAL_PIVY)
|
|||
endif (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/Pivy)
|
||||
endif(COIN_VERSION3)
|
||||
endif (FREECAD_LIBPACK_CHECKFILE6X)
|
||||
endif(FREECAD_BUILD_GUI AND NOT FREECAD_USE_EXTERNAL_PIVY)
|
||||
endif(BUILD_GUI AND NOT FREECAD_USE_EXTERNAL_PIVY)
|
||||
|
||||
# Build SalomeMesh for all Platforms since heavily patched
|
||||
if (FREECAD_BUILD_SMESH)
|
||||
if (BUILD_SMESH)
|
||||
add_subdirectory(salomesmesh)
|
||||
endif(FREECAD_BUILD_SMESH)
|
||||
endif(BUILD_SMESH)
|
||||
|
||||
|
|
20
src/3rdParty/salomesmesh/CMakeLists.txt
vendored
20
src/3rdParty/salomesmesh/CMakeLists.txt
vendored
|
@ -27,7 +27,7 @@ include_directories(
|
|||
link_directories(${OCC_LIBRARY_DIR})
|
||||
|
||||
if(MSVC)
|
||||
if(FREECAD_BUILD_FEM_NETGEN)
|
||||
if(BUILD_FEM_NETGEN)
|
||||
set(SMESH_LIBS
|
||||
debug MSVCRTD.LIB
|
||||
debug MSVCPRTD.LIB
|
||||
|
@ -41,7 +41,7 @@ if(MSVC)
|
|||
${OCC_OCAF_DEBUG_LIBRARIES}
|
||||
${OCC_OCAF_LIBRARIES}
|
||||
)
|
||||
else(FREECAD_BUILD_FEM_NETGEN)
|
||||
else(BUILD_FEM_NETGEN)
|
||||
set(SMESH_LIBS
|
||||
debug MSVCRTD.LIB
|
||||
debug MSVCPRTD.LIB
|
||||
|
@ -53,21 +53,21 @@ if(MSVC)
|
|||
${OCC_OCAF_DEBUG_LIBRARIES}
|
||||
${OCC_OCAF_LIBRARIES}
|
||||
)
|
||||
endif(FREECAD_BUILD_FEM_NETGEN)
|
||||
endif(BUILD_FEM_NETGEN)
|
||||
|
||||
else(MSVC)
|
||||
if(FREECAD_BUILD_FEM_NETGEN)
|
||||
if(BUILD_FEM_NETGEN)
|
||||
set(SMESH_LIBS
|
||||
${NGLIB_LIBRARIES}
|
||||
${OCC_LIBRARIES}
|
||||
${OCC_OCAF_LIBRARIES}
|
||||
)
|
||||
else(FREECAD_BUILD_FEM_NETGEN)
|
||||
else(BUILD_FEM_NETGEN)
|
||||
set(SMESH_LIBS
|
||||
${OCC_LIBRARIES}
|
||||
${OCC_OCAF_LIBRARIES}
|
||||
)
|
||||
endif(FREECAD_BUILD_FEM_NETGEN)
|
||||
endif(BUILD_FEM_NETGEN)
|
||||
endif(MSVC)
|
||||
|
||||
|
||||
|
@ -337,7 +337,7 @@ endif(WIN32)
|
|||
#ENDIF(MINGW)
|
||||
|
||||
# Disable for all other compilers but MSVC
|
||||
if (FREECAD_BUILD_FEM_NETGEN)
|
||||
if (BUILD_FEM_NETGEN)
|
||||
|
||||
################
|
||||
# NETGENPlugin #
|
||||
|
@ -351,7 +351,7 @@ if(WIN32)
|
|||
set_target_properties(NETGENPlugin PROPERTIES COMPILE_FLAGS "-DNETGENPLUGIN_EXPORTS -DNO_PARALLEL_THREADS -DOCCGEOMETRY -DNETGEN_V5")
|
||||
endif(WIN32)
|
||||
|
||||
endif (FREECAD_BUILD_FEM_NETGEN)
|
||||
endif (BUILD_FEM_NETGEN)
|
||||
|
||||
#IF(WIN32)
|
||||
# SET_TARGET_PROPERTIES(SMESH PROPERTIES COMPILE_FLAGS "-DNETGENPluginimpl_EXPORTS ")
|
||||
|
@ -372,7 +372,7 @@ else(WIN32)
|
|||
)
|
||||
endif(WIN32)
|
||||
|
||||
if (FREECAD_BUILD_FEM_NETGEN)
|
||||
if (BUILD_FEM_NETGEN)
|
||||
if(WIN32)
|
||||
INSTALL(TARGETS NETGENPlugin
|
||||
RUNTIME DESTINATION bin
|
||||
|
@ -383,5 +383,5 @@ if (FREECAD_BUILD_FEM_NETGEN)
|
|||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
)
|
||||
endif(WIN32)
|
||||
endif (FREECAD_BUILD_FEM_NETGEN)
|
||||
endif (BUILD_FEM_NETGEN)
|
||||
|
||||
|
|
|
@ -5,16 +5,16 @@ add_subdirectory(Base)
|
|||
add_subdirectory(App)
|
||||
add_subdirectory(Main)
|
||||
add_subdirectory(Mod)
|
||||
if(FREECAD_BUILD_GUI)
|
||||
if(BUILD_GUI)
|
||||
add_subdirectory(Gui)
|
||||
configure_file(Doc/Start_Page.html ${CMAKE_BINARY_DIR}/doc/Start_Page.html COPYONLY)
|
||||
configure_file(Doc/freecad.qhc ${CMAKE_BINARY_DIR}/doc/freecad.qhc COPYONLY)
|
||||
configure_file(Doc/freecad.qch ${CMAKE_BINARY_DIR}/doc/freecad.qch COPYONLY)
|
||||
endif(FREECAD_BUILD_GUI)
|
||||
endif(BUILD_GUI)
|
||||
|
||||
if(FREECAD_BUILD_TEMPLATE)
|
||||
if(BUILD_TEMPLATE)
|
||||
add_subdirectory(Tools/_TEMPLATE_)
|
||||
endif(FREECAD_BUILD_TEMPLATE)
|
||||
endif(BUILD_TEMPLATE)
|
||||
|
||||
add_subdirectory(Doc)
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@ if(DOXYGEN_FOUND)
|
|||
MARK_AS_ADVANCED(DOXYGEN_LANGUAGE)
|
||||
|
||||
# note: this test is obsolete if DevDoc target is used
|
||||
if (NOT FREECAD_BUILD_GUI)
|
||||
if (NOT BUILD_GUI)
|
||||
message("Note: Gui is not built. Documentation may lack some parts.")
|
||||
endif (NOT FREECAD_BUILD_GUI)
|
||||
endif (NOT BUILD_GUI)
|
||||
|
||||
# directory order seems important for correct macro expansion
|
||||
# (files containing macros definitions must be parsed before the files using them)
|
||||
|
@ -97,7 +97,7 @@ if(DOXYGEN_FOUND)
|
|||
# generate source documentation
|
||||
# delete CMakeCache to reset to default build options next time
|
||||
ADD_CUSTOM_TARGET(DevDoc
|
||||
${CMAKE_COMMAND} -D FREECAD_BUILD_GUI:BOOL=ON -D FREECAD_BUILD_FEM:BOOL=ON ${CMAKE_SOURCE_DIR}
|
||||
${CMAKE_COMMAND} -D BUILD_GUI:BOOL=ON -D BUILD_FEM:BOOL=ON ${CMAKE_SOURCE_DIR}
|
||||
COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/BuildDevDoc.cfg
|
||||
COMMAND ${CMAKE_COMMAND} -E remove ${CMAKE_BINARY_DIR}/CMakeCache.txt
|
||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#add_defintions(-D_FC_GUI_ENABLED_)
|
||||
#add_defintions(-DFREECADMAINPY)
|
||||
|
||||
if(FREECAD_BUILD_GUI)
|
||||
if(BUILD_GUI)
|
||||
include_directories(
|
||||
${Boost_INCLUDE_DIRS}
|
||||
${COIN3D_INCLUDE_DIR}
|
||||
|
@ -11,7 +11,7 @@ if(FREECAD_BUILD_GUI)
|
|||
${PYTHON_INCLUDE_PATH}
|
||||
${XERCESC_INCLUDE_DIR}
|
||||
)
|
||||
else(FREECAD_BUILD_GUI)
|
||||
else(BUILD_GUI)
|
||||
include_directories(
|
||||
${Boost_INCLUDE_DIRS}
|
||||
${ZLIB_INCLUDE_DIR}
|
||||
|
@ -19,10 +19,10 @@ else(FREECAD_BUILD_GUI)
|
|||
${PYTHON_INCLUDE_PATH}
|
||||
${XERCESC_INCLUDE_DIR}
|
||||
)
|
||||
endif(FREECAD_BUILD_GUI)
|
||||
endif(BUILD_GUI)
|
||||
|
||||
######################## FreeCADMain ########################
|
||||
if(FREECAD_BUILD_GUI)
|
||||
if(BUILD_GUI)
|
||||
|
||||
SET(FreeCAD_SRCS
|
||||
freecad.rc
|
||||
|
@ -57,7 +57,7 @@ if(FREECAD_BUILD_GUI)
|
|||
RUNTIME DESTINATION bin
|
||||
)
|
||||
endif(WIN32)
|
||||
endif(FREECAD_BUILD_GUI)
|
||||
endif(BUILD_GUI)
|
||||
######################## FreeCADMainCmd ########################
|
||||
|
||||
SET(FreeCADMainCmd_SRCS
|
||||
|
@ -109,7 +109,7 @@ else(WIN32)
|
|||
endif(WIN32)
|
||||
|
||||
######################## FreeCADGuiPy ########################
|
||||
if(FREECAD_BUILD_GUI)
|
||||
if(BUILD_GUI)
|
||||
|
||||
SET(FreeCADGuiPy_SRCS
|
||||
FreeCADGuiPy.cpp
|
||||
|
@ -138,4 +138,4 @@ if(FREECAD_BUILD_GUI)
|
|||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
)
|
||||
endif(WIN32)
|
||||
endif(FREECAD_BUILD_GUI)
|
||||
endif(BUILD_GUI)
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
add_subdirectory(App)
|
||||
if(FREECAD_BUILD_GUI)
|
||||
if(BUILD_GUI)
|
||||
add_subdirectory(Gui)
|
||||
endif(FREECAD_BUILD_GUI)
|
||||
endif(BUILD_GUI)
|
||||
|
||||
INSTALL(
|
||||
FILES
|
||||
|
|
|
@ -1,127 +1,127 @@
|
|||
|
||||
if(FREECAD_BUILD_POINTS)
|
||||
if(BUILD_POINTS)
|
||||
add_subdirectory(Points)
|
||||
endif(FREECAD_BUILD_POINTS)
|
||||
endif(BUILD_POINTS)
|
||||
|
||||
if(FREECAD_BUILD_COMPLETE)
|
||||
if(BUILD_COMPLETE)
|
||||
add_subdirectory(Complete)
|
||||
endif(FREECAD_BUILD_COMPLETE)
|
||||
endif(BUILD_COMPLETE)
|
||||
|
||||
if(FREECAD_BUILD_TEST)
|
||||
if(BUILD_TEST)
|
||||
add_subdirectory(Test)
|
||||
endif(FREECAD_BUILD_TEST)
|
||||
endif(BUILD_TEST)
|
||||
|
||||
#add_subdirectory(TemplatePyMod)
|
||||
|
||||
if(FREECAD_BUILD_IMAGE)
|
||||
if(BUILD_IMAGE)
|
||||
add_subdirectory(Image)
|
||||
endif(FREECAD_BUILD_IMAGE)
|
||||
endif(BUILD_IMAGE)
|
||||
|
||||
if(FREECAD_BUILD_MESH)
|
||||
if(BUILD_MESH)
|
||||
add_subdirectory(Mesh)
|
||||
endif(FREECAD_BUILD_MESH)
|
||||
endif(BUILD_MESH)
|
||||
|
||||
if(FREECAD_BUILD_PART)
|
||||
if(BUILD_PART)
|
||||
add_subdirectory(Part)
|
||||
endif(FREECAD_BUILD_PART)
|
||||
endif(BUILD_PART)
|
||||
|
||||
if(FREECAD_BUILD_MATERIAL)
|
||||
if(BUILD_MATERIAL)
|
||||
add_subdirectory(Material)
|
||||
endif(FREECAD_BUILD_MATERIAL)
|
||||
endif(BUILD_MATERIAL)
|
||||
|
||||
if(FREECAD_BUILD_PART_DESIGN)
|
||||
if(BUILD_PART_DESIGN)
|
||||
add_subdirectory(PartDesign)
|
||||
endif(FREECAD_BUILD_PART_DESIGN)
|
||||
endif(BUILD_PART_DESIGN)
|
||||
|
||||
if(FREECAD_BUILD_RAYTRACING)
|
||||
if(BUILD_RAYTRACING)
|
||||
add_subdirectory(Raytracing)
|
||||
endif(FREECAD_BUILD_RAYTRACING)
|
||||
endif(BUILD_RAYTRACING)
|
||||
|
||||
if(FREECAD_BUILD_DRAWING)
|
||||
if(BUILD_DRAWING)
|
||||
add_subdirectory(Drawing)
|
||||
endif(FREECAD_BUILD_DRAWING)
|
||||
endif(BUILD_DRAWING)
|
||||
|
||||
IF(EIGEN3_FOUND)
|
||||
if(FREECAD_BUILD_SKETCHER)
|
||||
if(BUILD_SKETCHER)
|
||||
add_subdirectory(Sketcher)
|
||||
endif(FREECAD_BUILD_SKETCHER)
|
||||
endif(BUILD_SKETCHER)
|
||||
|
||||
if(FREECAD_BUILD_ROBOT)
|
||||
if(BUILD_ROBOT)
|
||||
add_subdirectory(Robot)
|
||||
endif(FREECAD_BUILD_ROBOT)
|
||||
endif(BUILD_ROBOT)
|
||||
ELSE(EIGEN3_FOUND)
|
||||
MESSAGE("Due to the missing Eigen3 library the Sketcher module won't be built")
|
||||
MESSAGE("Due to the missing Eigen3 library the Robot module won't be built")
|
||||
ENDIF(EIGEN3_FOUND)
|
||||
|
||||
if(FREECAD_BUILD_REVERSEENGINEERING)
|
||||
if(BUILD_REVERSEENGINEERING)
|
||||
add_subdirectory(ReverseEngineering)
|
||||
endif(FREECAD_BUILD_REVERSEENGINEERING)
|
||||
endif(BUILD_REVERSEENGINEERING)
|
||||
|
||||
if(FREECAD_BUILD_MESH_PART)
|
||||
if(BUILD_MESH_PART)
|
||||
add_subdirectory(MeshPart)
|
||||
endif(FREECAD_BUILD_MESH_PART)
|
||||
endif(BUILD_MESH_PART)
|
||||
|
||||
if(FREECAD_BUILD_DRAFT)
|
||||
if(BUILD_DRAFT)
|
||||
add_subdirectory(Draft)
|
||||
endif(FREECAD_BUILD_DRAFT)
|
||||
endif(BUILD_DRAFT)
|
||||
|
||||
if(FREECAD_BUILD_WEB)
|
||||
if(BUILD_WEB)
|
||||
add_subdirectory(Web)
|
||||
endif(FREECAD_BUILD_WEB)
|
||||
endif(BUILD_WEB)
|
||||
|
||||
if(FREECAD_BUILD_START)
|
||||
if(BUILD_START)
|
||||
add_subdirectory(Start)
|
||||
endif(FREECAD_BUILD_START)
|
||||
endif(BUILD_START)
|
||||
|
||||
if(FREECAD_BUILD_IDF)
|
||||
if(BUILD_IDF)
|
||||
add_subdirectory(Idf)
|
||||
endif(FREECAD_BUILD_IDF)
|
||||
endif(BUILD_IDF)
|
||||
|
||||
if(FREECAD_BUILD_IMPORT)
|
||||
if(BUILD_IMPORT)
|
||||
add_subdirectory(Import)
|
||||
endif(FREECAD_BUILD_IMPORT)
|
||||
endif(BUILD_IMPORT)
|
||||
|
||||
if(FREECAD_BUILD_INSPECTION)
|
||||
if(BUILD_INSPECTION)
|
||||
add_subdirectory(Inspection)
|
||||
endif(FREECAD_BUILD_INSPECTION)
|
||||
endif(BUILD_INSPECTION)
|
||||
|
||||
if(FREECAD_BUILD_ARCH)
|
||||
if(BUILD_ARCH)
|
||||
add_subdirectory(Arch)
|
||||
endif(FREECAD_BUILD_ARCH)
|
||||
endif(BUILD_ARCH)
|
||||
|
||||
if(FREECAD_BUILD_ASSEMBLY)
|
||||
if(BUILD_ASSEMBLY)
|
||||
add_subdirectory(Assembly)
|
||||
endif(FREECAD_BUILD_ASSEMBLY)
|
||||
endif(BUILD_ASSEMBLY)
|
||||
|
||||
if(FREECAD_BUILD_CAM)
|
||||
if(BUILD_CAM)
|
||||
add_subdirectory(Cam)
|
||||
endif(FREECAD_BUILD_CAM)
|
||||
endif(BUILD_CAM)
|
||||
|
||||
if(FREECAD_BUILD_FEM)
|
||||
if(BUILD_FEM)
|
||||
add_subdirectory(Fem)
|
||||
endif(FREECAD_BUILD_FEM)
|
||||
endif(BUILD_FEM)
|
||||
|
||||
if(FREECAD_BUILD_SANDBOX)
|
||||
if(BUILD_SANDBOX)
|
||||
add_subdirectory(Sandbox)
|
||||
endif(FREECAD_BUILD_SANDBOX)
|
||||
endif(BUILD_SANDBOX)
|
||||
|
||||
if(FREECAD_BUILD_SHIP)
|
||||
if(BUILD_SHIP)
|
||||
add_subdirectory(Ship)
|
||||
endif(FREECAD_BUILD_SHIP)
|
||||
endif(BUILD_SHIP)
|
||||
|
||||
if(FREECAD_BUILD_OPENSCAD)
|
||||
if(BUILD_OPENSCAD)
|
||||
add_subdirectory(OpenSCAD)
|
||||
endif(FREECAD_BUILD_OPENSCAD)
|
||||
endif(BUILD_OPENSCAD)
|
||||
|
||||
if(FREECAD_BUILD_PLOT)
|
||||
if(BUILD_PLOT)
|
||||
add_subdirectory(Plot)
|
||||
endif(FREECAD_BUILD_PLOT)
|
||||
endif(BUILD_PLOT)
|
||||
|
||||
if(FREECAD_BUILD_SPREADSHEET)
|
||||
if(BUILD_SPREADSHEET)
|
||||
add_subdirectory(Spreadsheet)
|
||||
endif(FREECAD_BUILD_SPREADSHEET)
|
||||
endif(BUILD_SPREADSHEET)
|
||||
|
||||
if(FREECAD_BUILD_JTREADER)
|
||||
if(BUILD_JTREADER)
|
||||
add_subdirectory(JtReader)
|
||||
endif(FREECAD_BUILD_JTREADER)
|
||||
endif(BUILD_JTREADER)
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
add_subdirectory(App)
|
||||
if(FREECAD_BUILD_GUI)
|
||||
if(BUILD_GUI)
|
||||
add_subdirectory(Gui)
|
||||
endif(FREECAD_BUILD_GUI)
|
||||
endif(BUILD_GUI)
|
||||
|
||||
INSTALL(
|
||||
FILES
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
add_subdirectory(App)
|
||||
if(FREECAD_BUILD_GUI)
|
||||
if(BUILD_GUI)
|
||||
add_subdirectory(Gui)
|
||||
endif(FREECAD_BUILD_GUI)
|
||||
endif(BUILD_GUI)
|
||||
|
||||
INSTALL(
|
||||
FILES
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
add_subdirectory(App)
|
||||
if(FREECAD_BUILD_GUI)
|
||||
if(BUILD_GUI)
|
||||
add_subdirectory(Gui)
|
||||
endif(FREECAD_BUILD_GUI)
|
||||
endif(BUILD_GUI)
|
||||
|
||||
INSTALL(
|
||||
FILES
|
||||
|
|
|
@ -4,9 +4,9 @@ else(MSVC)
|
|||
add_definitions(-DHAVE_LIMITS_H -DHAVE_CONFIG_H)
|
||||
endif(MSVC)
|
||||
|
||||
if(FREECAD_BUILD_FEM_NETGEN)
|
||||
if(BUILD_FEM_NETGEN)
|
||||
add_definitions(-DFCWithNetgen)
|
||||
endif(FREECAD_BUILD_FEM_NETGEN)
|
||||
endif(BUILD_FEM_NETGEN)
|
||||
|
||||
|
||||
include_directories(
|
||||
|
@ -27,7 +27,7 @@ include_directories(
|
|||
link_directories(${OCC_LIBRARY_DIR})
|
||||
|
||||
|
||||
if(FREECAD_BUILD_FEM_NETGEN)
|
||||
if(BUILD_FEM_NETGEN)
|
||||
set(Fem_LIBS
|
||||
Part
|
||||
FreeCADApp
|
||||
|
@ -35,14 +35,14 @@ if(FREECAD_BUILD_FEM_NETGEN)
|
|||
NETGENPlugin
|
||||
SMESH
|
||||
)
|
||||
else(FREECAD_BUILD_FEM_NETGEN)
|
||||
else(BUILD_FEM_NETGEN)
|
||||
set(Fem_LIBS
|
||||
Part
|
||||
FreeCADApp
|
||||
StdMeshers
|
||||
SMESH
|
||||
)
|
||||
endif(FREECAD_BUILD_FEM_NETGEN)
|
||||
endif(BUILD_FEM_NETGEN)
|
||||
|
||||
generate_from_xml(FemMeshPy)
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
add_subdirectory(App)
|
||||
if(FREECAD_BUILD_GUI)
|
||||
if(BUILD_GUI)
|
||||
add_subdirectory(Gui)
|
||||
endif(FREECAD_BUILD_GUI)
|
||||
endif(BUILD_GUI)
|
||||
|
||||
|
||||
INSTALL(
|
||||
|
|
|
@ -4,9 +4,9 @@ else(MSVC)
|
|||
add_definitions(-DHAVE_LIMITS_H -DHAVE_CONFIG_H)
|
||||
endif(MSVC)
|
||||
|
||||
if(FREECAD_BUILD_FEM_NETGEN)
|
||||
if(BUILD_FEM_NETGEN)
|
||||
add_definitions(-DFCWithNetgen)
|
||||
endif(FREECAD_BUILD_FEM_NETGEN)
|
||||
endif(BUILD_FEM_NETGEN)
|
||||
|
||||
include_directories(
|
||||
${CMAKE_BINARY_DIR}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
add_subdirectory(App)
|
||||
if(FREECAD_BUILD_GUI)
|
||||
if(BUILD_GUI)
|
||||
add_subdirectory(Gui)
|
||||
endif(FREECAD_BUILD_GUI)
|
||||
endif(BUILD_GUI)
|
||||
|
||||
INSTALL(
|
||||
FILES
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
add_subdirectory(App)
|
||||
if(FREECAD_BUILD_GUI)
|
||||
if(BUILD_GUI)
|
||||
add_subdirectory(Gui)
|
||||
endif(FREECAD_BUILD_GUI)
|
||||
endif(BUILD_GUI)
|
||||
|
||||
INSTALL(
|
||||
FILES
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
add_subdirectory(App)
|
||||
if(FREECAD_BUILD_GUI)
|
||||
if(BUILD_GUI)
|
||||
add_subdirectory(Gui)
|
||||
endif(FREECAD_BUILD_GUI)
|
||||
endif(BUILD_GUI)
|
||||
|
||||
INSTALL(
|
||||
FILES
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
add_subdirectory(App)
|
||||
if(FREECAD_BUILD_GUI)
|
||||
if(BUILD_GUI)
|
||||
add_subdirectory(Gui)
|
||||
endif(FREECAD_BUILD_GUI)
|
||||
endif(BUILD_GUI)
|
||||
|
||||
INSTALL(
|
||||
FILES
|
||||
|
|
|
@ -4,13 +4,13 @@ else(MSVC)
|
|||
add_definitions(-DHAVE_LIMITS_H -DHAVE_CONFIG_H)
|
||||
endif(MSVC)
|
||||
|
||||
if (FREECAD_BUILD_SMESH)
|
||||
if (BUILD_SMESH)
|
||||
add_definitions(-DHAVE_SMESH -DHAVE_MEFISTO)
|
||||
endif(FREECAD_BUILD_SMESH)
|
||||
endif(BUILD_SMESH)
|
||||
|
||||
if(FREECAD_BUILD_FEM_NETGEN)
|
||||
if(BUILD_FEM_NETGEN)
|
||||
add_definitions(-DHAVE_NETGEN)
|
||||
endif(FREECAD_BUILD_FEM_NETGEN)
|
||||
endif(BUILD_FEM_NETGEN)
|
||||
|
||||
include_directories(
|
||||
${CMAKE_SOURCE_DIR}/src
|
||||
|
@ -27,7 +27,7 @@ include_directories(
|
|||
link_directories(${OCC_LIBRARY_DIR})
|
||||
|
||||
|
||||
if(FREECAD_BUILD_FEM_NETGEN)
|
||||
if(BUILD_FEM_NETGEN)
|
||||
set(MeshPart_LIBS
|
||||
Part
|
||||
Mesh
|
||||
|
@ -35,14 +35,14 @@ if(FREECAD_BUILD_FEM_NETGEN)
|
|||
NETGENPlugin
|
||||
SMESH
|
||||
)
|
||||
else(FREECAD_BUILD_FEM_NETGEN)
|
||||
else(BUILD_FEM_NETGEN)
|
||||
set(MeshPart_LIBS
|
||||
Part
|
||||
Mesh
|
||||
StdMeshers
|
||||
SMESH
|
||||
)
|
||||
endif(FREECAD_BUILD_FEM_NETGEN)
|
||||
endif(BUILD_FEM_NETGEN)
|
||||
|
||||
|
||||
SET(MeshPart_SRCS
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
add_subdirectory(App)
|
||||
if(FREECAD_BUILD_GUI)
|
||||
if(BUILD_GUI)
|
||||
add_subdirectory(Gui)
|
||||
endif(FREECAD_BUILD_GUI)
|
||||
endif(BUILD_GUI)
|
||||
|
||||
INSTALL(
|
||||
FILES
|
||||
|
|
|
@ -4,13 +4,13 @@ else(MSVC)
|
|||
add_definitions(-DHAVE_LIMITS_H -DHAVE_CONFIG_H)
|
||||
endif(MSVC)
|
||||
|
||||
if (FREECAD_BUILD_SMESH)
|
||||
if (BUILD_SMESH)
|
||||
add_definitions(-DHAVE_SMESH -DHAVE_MEFISTO)
|
||||
endif(FREECAD_BUILD_SMESH)
|
||||
endif(BUILD_SMESH)
|
||||
|
||||
if(FREECAD_BUILD_FEM_NETGEN)
|
||||
if(BUILD_FEM_NETGEN)
|
||||
add_definitions(-DHAVE_NETGEN)
|
||||
endif(FREECAD_BUILD_FEM_NETGEN)
|
||||
endif(BUILD_FEM_NETGEN)
|
||||
|
||||
include_directories(
|
||||
${CMAKE_BINARY_DIR}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
add_subdirectory(App)
|
||||
if(FREECAD_BUILD_GUI)
|
||||
if(BUILD_GUI)
|
||||
add_subdirectory(Gui)
|
||||
endif(FREECAD_BUILD_GUI)
|
||||
endif(BUILD_GUI)
|
||||
|
||||
INSTALL(
|
||||
FILES
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
add_subdirectory(App)
|
||||
if(FREECAD_BUILD_GUI)
|
||||
if(BUILD_GUI)
|
||||
add_subdirectory(Gui)
|
||||
endif(FREECAD_BUILD_GUI)
|
||||
endif(BUILD_GUI)
|
||||
|
||||
INSTALL(
|
||||
FILES
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
add_subdirectory(App)
|
||||
if(FREECAD_BUILD_GUI)
|
||||
if(BUILD_GUI)
|
||||
add_subdirectory(Gui)
|
||||
endif(FREECAD_BUILD_GUI)
|
||||
endif(BUILD_GUI)
|
||||
|
||||
INSTALL(
|
||||
FILES
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
add_subdirectory(App)
|
||||
if(FREECAD_BUILD_GUI)
|
||||
if(BUILD_GUI)
|
||||
add_subdirectory(Gui)
|
||||
endif(FREECAD_BUILD_GUI)
|
||||
endif(BUILD_GUI)
|
||||
|
||||
INSTALL(
|
||||
FILES
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
add_subdirectory(App)
|
||||
if(FREECAD_BUILD_GUI)
|
||||
if(BUILD_GUI)
|
||||
add_subdirectory(Gui)
|
||||
endif(FREECAD_BUILD_GUI)
|
||||
endif(BUILD_GUI)
|
||||
|
||||
INSTALL(
|
||||
FILES
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
add_subdirectory(App)
|
||||
if(FREECAD_BUILD_GUI)
|
||||
if(BUILD_GUI)
|
||||
add_subdirectory(Gui)
|
||||
endif(FREECAD_BUILD_GUI)
|
||||
endif(BUILD_GUI)
|
||||
|
||||
INSTALL(
|
||||
FILES
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
add_subdirectory(App)
|
||||
if(FREECAD_BUILD_GUI)
|
||||
if(BUILD_GUI)
|
||||
add_subdirectory(Gui)
|
||||
endif(FREECAD_BUILD_GUI)
|
||||
endif(BUILD_GUI)
|
||||
|
||||
INSTALL(
|
||||
FILES
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
add_subdirectory(App)
|
||||
if(FREECAD_BUILD_GUI)
|
||||
if(BUILD_GUI)
|
||||
add_subdirectory(Gui)
|
||||
endif(FREECAD_BUILD_GUI)
|
||||
endif(BUILD_GUI)
|
||||
|
||||
INSTALL(
|
||||
FILES
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
|
||||
add_subdirectory(App)
|
||||
if(FREECAD_BUILD_GUI)
|
||||
if(BUILD_GUI)
|
||||
add_subdirectory(Gui)
|
||||
add_subdirectory(StartPage)
|
||||
endif(FREECAD_BUILD_GUI)
|
||||
endif(BUILD_GUI)
|
||||
|
||||
INSTALL(
|
||||
FILES
|
||||
|
|
|
@ -28,6 +28,6 @@ INSTALL(
|
|||
Mod/Test
|
||||
)
|
||||
|
||||
if(FREECAD_BUILD_GUI)
|
||||
if(BUILD_GUI)
|
||||
add_subdirectory(Gui)
|
||||
endif(FREECAD_BUILD_GUI)
|
||||
endif(BUILD_GUI)
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
add_subdirectory(App)
|
||||
if(FREECAD_BUILD_GUI)
|
||||
if(BUILD_GUI)
|
||||
add_subdirectory(Gui)
|
||||
endif(FREECAD_BUILD_GUI)
|
||||
endif(BUILD_GUI)
|
||||
|
||||
INSTALL(
|
||||
FILES
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
add_subdirectory(App)
|
||||
if(FREECAD_BUILD_GUI)
|
||||
if(BUILD_GUI)
|
||||
add_subdirectory(Gui)
|
||||
endif(FREECAD_BUILD_GUI)
|
||||
endif(BUILD_GUI)
|
||||
|
||||
install(
|
||||
FILES
|
||||
|
|
Loading…
Reference in New Issue
Block a user