1. windows下命令行运行时要加 -G "Unix Makefiles"
cmake -G "Unix Makefiles" ..
2. 外部编译方式
将CMake产生的中间件放到build文件夹里,和源码区分开,便于管理
在build目录下执行
cmake -G "Unix Makefiles" ..
make
3. 多源文件目录
问题记录
cmake fatal error: worker.h: No such file or directory
尝试许多方法,最终发现是目录问题
main.cpp 中include要加一层
#include"math/employee.h"
#include"math/worker.h"
#include"math/manager.h"
#include"math/boss.h"
#include"math/workerManage.h"
GUI 使用方法