hw01 icon indicating copy to clipboard operation
hw01 copied to clipboard

hw01 finshed

Open bonbao opened this issue 3 years ago • 0 comments

  • 当定义STB_IMAGE_WRITE_IMPLEMENTATIONstb_image_write.h就会添加函数定义,不然只有函数申明。C++允许多次申明,所以只要在引用stb_image_write.h头文件之前#define STB_IMAGE_WRITE_IMPLEMENTATION,后面再使用stb_image_write.h的文件不能再定义STB_IMAGE_WRITE_IMPLEMENTATION,所以在./stbiw/CMakeList.txttarget_complie_definitions()中使用PRIVATE
  • 因为除stbiw静态库中使用stb_image_write.h,之后使用stbiw库的main也要使用。所以在./stbiw/CMakeList.txttarget_include_directories()中使用PUBLIC
  • 添加stbiw.cc为了可以生成库。

bonbao avatar Feb 26 '22 02:02 bonbao