modified: CMakeLists.txt

modified:   INSTALL.md
	modified:   README.md
	modified:   build_release_zip.py
	modified:   compute.py
	new file:   doc/index.html
	modified:   dynamics.py
	modified:   engines/c/main.c
	modified:   engines/cpp/main.cpp
	modified:   engines/fortran/main.f90
	modified:   examples/case01/input/coord.txt
	renamed:    examples/case01/input/parameters.yaml -> examples/case01/input/input.txt
	modified:   examples/case01/run_dynamics.py
	new file:   examples/case02/input/bond.txt
	new file:   examples/case02/input/connection.txt
	new file:   examples/case02/input/coord.txt
	new file:   examples/case02/input/input.txt
	new file:   examples/case02/run_dynamics.py
This commit is contained in:
2026-05-20 16:03:59 +08:00
parent 45513fe334
commit 5de80d4f7e
18 changed files with 3058 additions and 233 deletions
+4 -2
View File
@@ -53,9 +53,11 @@ function(add_engine_target name lang src)
add_executable(${name} ${src})
endif()
# 输出到 engines/<name>/build/Python 调度器期望的位置)
# 从源码路径推导输出目录:engines/c/main.c → engines/c/build/
# 这样 Python 的 run_engine() 能在固定路径找到可执行文件
string(REGEX REPLACE "/[^/]+$" "/build" _out_subdir "${src}")
set_target_properties(${name} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/engines/${name}/build"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/${_out_subdir}"
)
# macOS 上禁止生成 .app 包(命令行工具不需要)
set_target_properties(${name} PROPERTIES