我正在尝试使用cmake和makefile构建的C ++文件导入项目。我正在尝试将其导入QT创建者。但是,在导入项目并尝试调试它之后,我收到错误“没有规则来制作目标”。但是,它所引用的文件存在,并且在使用cmake时我从未遇到过该文件的问题。
SetupBoost.cmake
中ws/Arthur/cmake/Project/CMake/SetupBoost.cmake
的内容低于
macro(IncludeBoost)
set(Boost_FOUND FOUND)
set(Boost_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/third-party/boost)
endmacro(IncludeBoost)
macro(find_boost)
set(Boost_FOUND FOUND)
set(Boost_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/third-party/boost)
set(Boost_components thread date_time regex filesystem system program_options)
endmacro(find_boost)
macro(SetupBoost TargetName)
# message("Setting up boost for target ${TargetName}")
set(Boost_FOUND FOUND)
set(Boost_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/third-party/boost)
# if (NOT DEFINED Boost_USE_MULTITHREADED)
set(Boost_LIBRARIES boost_thread-mt boost_date_time-mt boost_regex-mt boost_filesystem-mt boost_system-mt boost_program_options-mt)
target_link_libraries(${TargetName} ${Boost_LIBRARIES})
endmacro(SetupBoost)
发生了什么事?