我一直在尝试使用 CMake从 Github 存储库https://github.com/dllu/puppup运行此代码。成功构建文件后,命令
./puppup
导致以下错误
'.' is not recognized as an internal or external command, operable program or batch file.
以下是对应的 CMakeList.txt 文件的代码
cmake_minimum_required(VERSION 3.9)
project(puppup)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
set(SCRABBLE_INCLUDE_DIRS
${PROJECT_SOURCE_DIR}/src
${PROJECT_SOURCE_DIR}/third-party
)
################################################################
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -march=native -Wall -Wpedantic -Werror")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -g")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Ofast")
set(LLVM_OPT_IR_FLAGS "-inline-threshold=10000")
################################################################
include_directories(${SCRABBLE_INCLUDE_DIRS})
add_executable(
puppup
src/main.cpp
src/movegen.cpp
)
提前致谢!