FreeCAD/src/Mod/Points/App/CMakeLists.txt
2015-07-25 18:29:42 +02:00

67 lines
1.3 KiB
CMake

if(WIN32)
add_definitions(-DFCAppPoints)
endif(WIN32)
if(PCL_IO_FOUND)
add_definitions(-DHAVE_PCL_IO)
elseif(PCL_FOUND)
message(WARNING "pcl installed but io component not found")
endif(PCL_IO_FOUND)
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${Boost_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
${PCL_INCLUDE_DIRS}
${PYTHON_INCLUDE_DIRS}
${XERCESC_INCLUDE_DIR}
${ZLIB_INCLUDE_DIR}
)
set(Points_LIBS
FreeCADApp
${PCL_COMMON_LIBRARIES}
${PCL_IO_LIBRARIES}
)
generate_from_xml(PointsPy)
SET(Points_SRCS
AppPoints.cpp
AppPointsPy.cpp
FeaturePointsImportAscii.cpp
FeaturePointsImportAscii.h
Points.cpp
Points.h
PointsPy.xml
PointsPyImp.cpp
PointsAlgos.cpp
PointsAlgos.h
PointsFeature.cpp
PointsFeature.h
PointsGrid.cpp
PointsGrid.h
PreCompiled.cpp
PreCompiled.h
Properties.cpp
Properties.h
PropertyPointKernel.cpp
PropertyPointKernel.h
)
add_library(Points SHARED ${Points_SRCS})
target_link_libraries(Points ${Points_LIBS})
fc_target_copy_resource(Points
${CMAKE_SOURCE_DIR}/src/Mod/Points
${CMAKE_BINARY_DIR}/Mod/Points
Init.py)
SET_BIN_DIR(Points Points /Mod/Points)
SET_PYTHON_PREFIX_SUFFIX(Points)
INSTALL(TARGETS Points DESTINATION ${CMAKE_INSTALL_LIBDIR})