一、编译步骤
1,配置
mkdir build
cd build
配置release,动态库
cmake .. -G"Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=install -DBUILD_SHARED_LIBS=ON -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON -DLV_CONF_PATH=E:/workspace/projects/lv_sim_visual_studio/LVGL.Simulator/lv_conf.h
配置debug,静态库
cmake .. -G"Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=install -DBUILD_SHARED_LIBS=OFF -DLV_CONF_PATH=E:/workspace/projects/lv_sim_visual_studio/LVGL.Simulator/lv_conf.h
指令备注:
2,编译安装
cmake --build . --config Release
cmake --install . --config Release