52 lines
1.1 KiB
CMake
52 lines
1.1 KiB
CMake
if(MSVC)
|
|
add_definitions(-DHAVE_ACOSH -DHAVE_ASINH -DHAVE_ATANH)
|
|
else(MSVC)
|
|
add_definitions(-DHAVE_LIMITS_H -DHAVE_CONFIG_H)
|
|
endif(MSVC)
|
|
|
|
include_directories(
|
|
${Boost_INCLUDE_DIRS}
|
|
${OCC_INCLUDE_DIR}
|
|
${PYTHON_INCLUDE_DIRS}
|
|
${ZLIB_INCLUDE_DIR}
|
|
${XercesC_INCLUDE_DIRS}
|
|
)
|
|
|
|
set(Surface_LIBS
|
|
FreeCADApp
|
|
Part
|
|
)
|
|
|
|
SET(Surface_SRCS
|
|
AppSurface.cpp
|
|
PreCompiled.cpp
|
|
PreCompiled.h
|
|
FeatureSurface.cpp
|
|
FeatureSurface.h
|
|
FeatureFilling.cpp
|
|
FeatureFilling.h
|
|
FeatureSewing.cpp
|
|
FeatureSewing.h
|
|
FeatureCut.cpp
|
|
FeatureCut.h
|
|
FeatureBezierSurface.cpp
|
|
FeatureBezierSurface.h
|
|
FeatureBSplineSurface.cpp
|
|
FeatureBSplineSurface.h
|
|
)
|
|
|
|
link_directories(${OCC_LIBRARY_DIR})
|
|
add_library(Surface SHARED ${Surface_SRCS})
|
|
target_link_libraries(Surface ${Surface_LIBS})
|
|
|
|
|
|
fc_target_copy_resource(Surface
|
|
${CMAKE_SOURCE_DIR}/src/Mod/Surface
|
|
${CMAKE_BINARY_DIR}/Mod/Surface
|
|
Init.py)
|
|
|
|
SET_BIN_DIR(Surface Surface /Mod/Surface)
|
|
SET_PYTHON_PREFIX_SUFFIX(Surface)
|
|
|
|
install(TARGETS Surface DESTINATION ${CMAKE_INSTALL_LIBDIR})
|