move build specifier in own cMake group

This commit is contained in:
jriegel
2014-08-03 20:53:19 +02:00
parent d92a859ee3
commit 103ae7c2ad
32 changed files with 154 additions and 154 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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}