File size: 912 Bytes
985c397 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | # SPDX-License-Identifier: LGPL-2.1-or-later
set(PathSimulator_LIBS
Path
Part
Mesh
FreeCADApp
)
SET(Python_SRCS
PathSim.pyi
PathSimPyImp.cpp
)
SET(PathSimulator_SRCS
AppPathSimulator.cpp
PathSim.cpp
PathSim.h
VolSim.cpp
VolSim.h
PreCompiled.h
${Python_SRCS}
)
generate_from_py(PathSim)
SOURCE_GROUP("Python" FILES ${Python_SRCS})
add_library(PathSimulator SHARED ${PathSimulator_SRCS})
target_include_directories(
PathSimulator
PRIVATE
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/src
${CMAKE_BINARY_DIR}/src
${CMAKE_CURRENT_BINARY_DIR}
)
target_link_libraries(PathSimulator ${PathSimulator_LIBS})
if (FREECAD_WARN_ERROR)
target_compile_warn_error(PathSimulator)
endif()
SET_BIN_DIR(PathSimulator PathSimulator /Mod/CAM)
SET_PYTHON_PREFIX_SUFFIX(PathSimulator)
install(TARGETS PathSimulator DESTINATION ${CMAKE_INSTALL_LIBDIR})
|