Files
create/src/Mod/Path/PathSimulator/App/CMakeLists.txt
Ryan Pavlik 25332ba033 Fix ninja warnings about duplicate rules for Mod/Path/Init.py
Both Path/App and Path/PathSimulator/App were copying it.
2018-08-11 17:39:14 +02:00

51 lines
946 B
CMake

include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/src
${CMAKE_BINARY_DIR}/src
${CMAKE_CURRENT_BINARY_DIR}
${Boost_INCLUDE_DIRS}
${OCC_INCLUDE_DIR}
${PYTHON_INCLUDE_DIRS}
${ZLIB_INCLUDE_DIR}
${XercesC_INCLUDE_DIRS}
)
link_directories(${OCC_LIBRARY_DIR})
set(PathSimulator_LIBS
Path
Part
Mesh
FreeCADApp
)
SET(Python_SRCS
PathSimPy.xml
PathSimPyImp.cpp
)
SET(PathSimulator_SRCS
AppPathSimulator.cpp
PathSim.cpp
PathSim.h
VolSim.cpp
VolSim.h
PreCompiled.cpp
PreCompiled.h
${Python_SRCS}
)
generate_from_xml(PathSimPy)
SOURCE_GROUP("Python" FILES ${Python_SRCS})
add_library(PathSimulator SHARED ${PathSimulator_SRCS})
target_link_libraries(PathSimulator ${PathSimulator_LIBS})
SET_BIN_DIR(PathSimulator PathSimulator /Mod/Path)
SET_PYTHON_PREFIX_SUFFIX(PathSimulator)
install(TARGETS PathSimulator DESTINATION ${CMAKE_INSTALL_LIBDIR})