通常Linux问题不大,Windows下老是会出现Debug和Release目录 ,导致不一致 这样设置即可
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_CURRENT_SOURCE_DIR}/../bin) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_CURRENT_SOURCE_DIR}/../bin)
上面的语句设置目标路径为当前目录的上一层目录名bin
标签:bin,set,CMAKE,绝对路径,设置,cmake,DIR From: https://www.cnblogs.com/yuandaozhe/p/17702041.html