tasmet/src/CMakeLists.txt

85 lines
1.9 KiB
CMake
Raw Normal View History

#================
# 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
sys
solver
# var
# volume
)
add_library(tasmet_src
tasmet_tracer.cpp
tasmet_exception.cpp
tasmet_assert.cpp
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
sys/tasystem.cpp
sys/triplets.cpp
)
# 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})