2016-11-11 22:22:44 +00:00
|
|
|
#================
|
|
|
|
# The TaSMET code
|
|
|
|
#================
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${PYTHON_INCLUDE_PATH}
|
|
|
|
${ARMADILLO_INCLUDE_DIRS}
|
|
|
|
.
|
|
|
|
# duct
|
|
|
|
# duct/cell
|
|
|
|
# duct/connectors
|
|
|
|
# duct/eq
|
|
|
|
# duct/geom
|
|
|
|
# duct/geom/grid
|
|
|
|
# duct/drag
|
|
|
|
# duct/heat
|
|
|
|
# mech
|
|
|
|
# python
|
|
|
|
# seg
|
|
|
|
# sol
|
2016-12-02 13:31:10 +00:00
|
|
|
sys
|
|
|
|
solver
|
2016-11-11 22:22:44 +00:00
|
|
|
# var
|
|
|
|
# volume
|
|
|
|
)
|
|
|
|
|
2016-12-02 21:47:07 +00:00
|
|
|
add_library(tasmet_src
|
2016-12-02 13:31:10 +00:00
|
|
|
tasmet_tracer.cpp
|
|
|
|
tasmet_exception.cpp
|
|
|
|
tasmet_assert.cpp
|
|
|
|
|
2016-12-02 21:47:07 +00:00
|
|
|
funcs/bessel.cpp
|
|
|
|
funcs/cbessj.cpp
|
|
|
|
funcs/rottfuncs.cpp
|
|
|
|
funcs/skewsine.cpp
|
|
|
|
funcs/sph_j.cpp
|
|
|
|
|
|
|
|
solver/solver.cpp
|
|
|
|
solver/system.cpp
|
|
|
|
solver/newton_raphson.cpp
|
|
|
|
solver/brent.cpp
|
|
|
|
|
|
|
|
material/gas.cpp
|
|
|
|
material/air.cpp
|
|
|
|
material/helium.cpp
|
|
|
|
material/nitrogen.cpp
|
|
|
|
material/solid.cpp
|
|
|
|
material/adiabatictemp.cpp
|
|
|
|
|
|
|
|
# sys/enginesystem.cpp
|
|
|
|
sys/globalconf.cpp
|
|
|
|
sys/tasmet_variable.cpp
|
|
|
|
sys/jaccol.cpp
|
|
|
|
sys/jacobian.cpp
|
|
|
|
sys/jacrow.cpp
|
2016-12-08 21:02:21 +00:00
|
|
|
sys/tasystem.cpp
|
2016-12-02 21:47:07 +00:00
|
|
|
sys/triplets.cpp
|
|
|
|
)
|
2016-11-11 22:22:44 +00:00
|
|
|
|
|
|
|
# set_source_files_properties(swig/nonlin.i
|
|
|
|
# PROPERTIES CPLUSPLUS ON)
|
|
|
|
# swig_add_module(TaSMET python swig/nonlin.i)
|
|
|
|
|
|
|
|
# set(SWIG_MODULE_TaSMET_FILE_nonlin_EXTRA_DEPS
|
|
|
|
# ${CMAKE_CURRENT_SOURCE_DIR}/common/swig_files/arma_numpy.i
|
|
|
|
# )
|
|
|
|
# swig_link_libraries(TaSMET tasmet_src common ${PYTHON_LIBRARIES}
|
|
|
|
# ${ARMADILLO_LIBRARIES})
|
|
|
|
|
|
|
|
# set_source_files_properties( ${swig_generated_file_fullname}
|
|
|
|
# PROPERTIES COMPILE_FLAGS "${SWIG_COMMON_COMPILE_FLAGS} ")
|
|
|
|
|
|
|
|
# Install swig files to the right place
|
|
|
|
# install(TARGETS _TaSMET
|
|
|
|
# DESTINATION ${PYTHON_SITE_PACKAGES}/${PROJECT_NAME})
|
|
|
|
# install(FILES ${CMAKE_BINARY_DIR}/src/TaSMET.py
|
|
|
|
# DESTINATION ${PYTHON_SITE_PACKAGES}/${PROJECT_NAME})
|
|
|
|
# install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/python/__init__.py
|
|
|
|
# DESTINATION ${PYTHON_SITE_PACKAGES}/${PROJECT_NAME})
|
|
|
|
# install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/python/post
|
|
|
|
# DESTINATION ${PYTHON_SITE_PACKAGES}/${PROJECT_NAME})
|
|
|
|
# install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/python/gui
|
|
|
|
# DESTINATION ${PYTHON_SITE_PACKAGES}/${PROJECT_NAME})
|
|
|
|
|