在上面的示例中,我们使用CMAKE_SOURCE_DIR来指定source_file的路径,并将其复制到构建目录中的copied_file。 2. EXECUTABLE_OUTPUT_PATH EXECUTABLE_OUTPUT_PATH是一个用于指定可执行文件输出目录的变量。默认情况下,CMake将生成的可执行文件放在构建目录的根目录下,但你可以通过设置EXECUTABLE_OUTPUT_PATH来改变这个行为。
问为什么EXECUTABLE_OUTPUT_PATH不工作?EN如果你不属于上述的情况,请查看:https://learn.microsoft.com...
aPath to the folder where the images to be compressed are stored. Either this argument or the -i argument described above is required. When Image files are in the same directory as the executable it can be indicated by a dot "." argument. When using this option, output format must be ...