diff --git a/CMakeLists.txt b/CMakeLists.txt index e33854f..fdceb7a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,12 +42,12 @@ endif() # 设置头文件搜索路径 target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_SOURCE_DIR}/include - ${CMAKE_SOURCE_DIR}/libs/iup-3.31_Win64_dllw6_lib/include + ${CMAKE_SOURCE_DIR}/libs/IUP/include ) # 设置库文件搜索路径 target_link_directories(${PROJECT_NAME} PRIVATE - ${CMAKE_SOURCE_DIR}/libs/iup-3.31_Win64_dllw6_lib + ${CMAKE_SOURCE_DIR}/libs/IUP ) # 链接所需库 @@ -62,11 +62,11 @@ target_link_libraries(${PROJECT_NAME} PRIVATE advapi32 ) -# 编译完成后,将 DLL 文件复制到构建输出目录 -file(GLOB IUP_DLLS "${CMAKE_CURRENT_SOURCE_DIR}/libs/iup-3.31_Win64_dllw6_lib/*.dll") +# 编译完成后,仅将程序实际需要的核心 DLL 文件复制到构建输出目录 +set(IUP_REQUIRED_DLLS "${CMAKE_CURRENT_SOURCE_DIR}/libs/IUP/iup.dll") add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different - ${IUP_DLLS} + ${IUP_REQUIRED_DLLS} "$" - COMMENT "Copying DLLs to build directory..." + COMMENT "Copying required DLLs to build directory..." ) diff --git a/libs/iup-3.31_Win64_dllw6_lib/freetype6.dll b/libs/IUP/freetype6.dll similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/freetype6.dll rename to libs/IUP/freetype6.dll diff --git a/libs/iup-3.31_Win64_dllw6_lib/ftgl.dll b/libs/IUP/ftgl.dll similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/ftgl.dll rename to libs/IUP/ftgl.dll diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iup.h b/libs/IUP/include/iup.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iup.h rename to libs/IUP/include/iup.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iup_class_cbs.hpp b/libs/IUP/include/iup_class_cbs.hpp similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iup_class_cbs.hpp rename to libs/IUP/include/iup_class_cbs.hpp diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iup_config.h b/libs/IUP/include/iup_config.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iup_config.h rename to libs/IUP/include/iup_config.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iup_export.h b/libs/IUP/include/iup_export.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iup_export.h rename to libs/IUP/include/iup_export.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iup_mglplot.h b/libs/IUP/include/iup_mglplot.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iup_mglplot.h rename to libs/IUP/include/iup_mglplot.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iup_plot.h b/libs/IUP/include/iup_plot.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iup_plot.h rename to libs/IUP/include/iup_plot.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iup_plus.h b/libs/IUP/include/iup_plus.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iup_plus.h rename to libs/IUP/include/iup_plus.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iup_scintilla.h b/libs/IUP/include/iup_scintilla.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iup_scintilla.h rename to libs/IUP/include/iup_scintilla.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iup_varg.h b/libs/IUP/include/iup_varg.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iup_varg.h rename to libs/IUP/include/iup_varg.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iupcbs.h b/libs/IUP/include/iupcbs.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iupcbs.h rename to libs/IUP/include/iupcbs.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iupcontrols.h b/libs/IUP/include/iupcontrols.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iupcontrols.h rename to libs/IUP/include/iupcontrols.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iupdef.h b/libs/IUP/include/iupdef.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iupdef.h rename to libs/IUP/include/iupdef.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iupdraw.h b/libs/IUP/include/iupdraw.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iupdraw.h rename to libs/IUP/include/iupdraw.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iupdraw_cd.h b/libs/IUP/include/iupdraw_cd.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iupdraw_cd.h rename to libs/IUP/include/iupdraw_cd.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iupfiledlg.h b/libs/IUP/include/iupfiledlg.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iupfiledlg.h rename to libs/IUP/include/iupfiledlg.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iupgl.h b/libs/IUP/include/iupgl.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iupgl.h rename to libs/IUP/include/iupgl.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iupglcontrols.h b/libs/IUP/include/iupglcontrols.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iupglcontrols.h rename to libs/IUP/include/iupglcontrols.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iupim.h b/libs/IUP/include/iupim.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iupim.h rename to libs/IUP/include/iupim.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iupkey.h b/libs/IUP/include/iupkey.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iupkey.h rename to libs/IUP/include/iupkey.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iuplua.h b/libs/IUP/include/iuplua.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iuplua.h rename to libs/IUP/include/iuplua.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iuplua_mglplot.h b/libs/IUP/include/iuplua_mglplot.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iuplua_mglplot.h rename to libs/IUP/include/iuplua_mglplot.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iuplua_plot.h b/libs/IUP/include/iuplua_plot.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iuplua_plot.h rename to libs/IUP/include/iuplua_plot.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iuplua_scintilla.h b/libs/IUP/include/iuplua_scintilla.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iuplua_scintilla.h rename to libs/IUP/include/iuplua_scintilla.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iupluacontrols.h b/libs/IUP/include/iupluacontrols.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iupluacontrols.h rename to libs/IUP/include/iupluacontrols.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iupluafiledlg.h b/libs/IUP/include/iupluafiledlg.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iupluafiledlg.h rename to libs/IUP/include/iupluafiledlg.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iupluagl.h b/libs/IUP/include/iupluagl.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iupluagl.h rename to libs/IUP/include/iupluagl.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iupluaglcontrols.h b/libs/IUP/include/iupluaglcontrols.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iupluaglcontrols.h rename to libs/IUP/include/iupluaglcontrols.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iupluaim.h b/libs/IUP/include/iupluaim.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iupluaim.h rename to libs/IUP/include/iupluaim.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iupluaole.h b/libs/IUP/include/iupluaole.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iupluaole.h rename to libs/IUP/include/iupluaole.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iupluascripterdlg.h b/libs/IUP/include/iupluascripterdlg.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iupluascripterdlg.h rename to libs/IUP/include/iupluascripterdlg.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iupluatuio.h b/libs/IUP/include/iupluatuio.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iupluatuio.h rename to libs/IUP/include/iupluatuio.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iupluaweb.h b/libs/IUP/include/iupluaweb.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iupluaweb.h rename to libs/IUP/include/iupluaweb.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iupole.h b/libs/IUP/include/iupole.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iupole.h rename to libs/IUP/include/iupole.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iuptuio.h b/libs/IUP/include/iuptuio.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iuptuio.h rename to libs/IUP/include/iuptuio.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/include/iupweb.h b/libs/IUP/include/iupweb.h similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/include/iupweb.h rename to libs/IUP/include/iupweb.h diff --git a/libs/iup-3.31_Win64_dllw6_lib/iup.dll b/libs/IUP/iup.dll similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/iup.dll rename to libs/IUP/iup.dll diff --git a/libs/iup-3.31_Win64_dllw6_lib/iup_mglplot.dll b/libs/IUP/iup_mglplot.dll similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/iup_mglplot.dll rename to libs/IUP/iup_mglplot.dll diff --git a/libs/iup-3.31_Win64_dllw6_lib/iup_plot.dll b/libs/IUP/iup_plot.dll similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/iup_plot.dll rename to libs/IUP/iup_plot.dll diff --git a/libs/iup-3.31_Win64_dllw6_lib/iup_scintilla.dll b/libs/IUP/iup_scintilla.dll similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/iup_scintilla.dll rename to libs/IUP/iup_scintilla.dll diff --git a/libs/iup-3.31_Win64_dllw6_lib/iupcd.dll b/libs/IUP/iupcd.dll similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/iupcd.dll rename to libs/IUP/iupcd.dll diff --git a/libs/iup-3.31_Win64_dllw6_lib/iupcontrols.dll b/libs/IUP/iupcontrols.dll similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/iupcontrols.dll rename to libs/IUP/iupcontrols.dll diff --git a/libs/iup-3.31_Win64_dllw6_lib/iupgl.dll b/libs/IUP/iupgl.dll similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/iupgl.dll rename to libs/IUP/iupgl.dll diff --git a/libs/iup-3.31_Win64_dllw6_lib/iupglcontrols.dll b/libs/IUP/iupglcontrols.dll similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/iupglcontrols.dll rename to libs/IUP/iupglcontrols.dll diff --git a/libs/iup-3.31_Win64_dllw6_lib/iupim.dll b/libs/IUP/iupim.dll similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/iupim.dll rename to libs/IUP/iupim.dll diff --git a/libs/iup-3.31_Win64_dllw6_lib/iupimglib.dll b/libs/IUP/iupimglib.dll similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/iupimglib.dll rename to libs/IUP/iupimglib.dll diff --git a/libs/iup-3.31_Win64_dllw6_lib/iupole.dll b/libs/IUP/iupole.dll similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/iupole.dll rename to libs/IUP/iupole.dll diff --git a/libs/iup-3.31_Win64_dllw6_lib/iuptuio.dll b/libs/IUP/iuptuio.dll similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/iuptuio.dll rename to libs/IUP/iuptuio.dll diff --git a/libs/iup-3.31_Win64_dllw6_lib/libfreetype6.a b/libs/IUP/libfreetype6.a similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/libfreetype6.a rename to libs/IUP/libfreetype6.a diff --git a/libs/iup-3.31_Win64_dllw6_lib/libftgl.a b/libs/IUP/libftgl.a similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/libftgl.a rename to libs/IUP/libftgl.a diff --git a/libs/iup-3.31_Win64_dllw6_lib/libiup.a b/libs/IUP/libiup.a similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/libiup.a rename to libs/IUP/libiup.a diff --git a/libs/iup-3.31_Win64_dllw6_lib/libiup_mglplot.a b/libs/IUP/libiup_mglplot.a similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/libiup_mglplot.a rename to libs/IUP/libiup_mglplot.a diff --git a/libs/iup-3.31_Win64_dllw6_lib/libiup_plot.a b/libs/IUP/libiup_plot.a similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/libiup_plot.a rename to libs/IUP/libiup_plot.a diff --git a/libs/iup-3.31_Win64_dllw6_lib/libiup_scintilla.a b/libs/IUP/libiup_scintilla.a similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/libiup_scintilla.a rename to libs/IUP/libiup_scintilla.a diff --git a/libs/iup-3.31_Win64_dllw6_lib/libiupcd.a b/libs/IUP/libiupcd.a similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/libiupcd.a rename to libs/IUP/libiupcd.a diff --git a/libs/iup-3.31_Win64_dllw6_lib/libiupcontrols.a b/libs/IUP/libiupcontrols.a similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/libiupcontrols.a rename to libs/IUP/libiupcontrols.a diff --git a/libs/iup-3.31_Win64_dllw6_lib/libiupgl.a b/libs/IUP/libiupgl.a similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/libiupgl.a rename to libs/IUP/libiupgl.a diff --git a/libs/iup-3.31_Win64_dllw6_lib/libiupglcontrols.a b/libs/IUP/libiupglcontrols.a similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/libiupglcontrols.a rename to libs/IUP/libiupglcontrols.a diff --git a/libs/iup-3.31_Win64_dllw6_lib/libiupim.a b/libs/IUP/libiupim.a similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/libiupim.a rename to libs/IUP/libiupim.a diff --git a/libs/iup-3.31_Win64_dllw6_lib/libiupimglib.a b/libs/IUP/libiupimglib.a similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/libiupimglib.a rename to libs/IUP/libiupimglib.a diff --git a/libs/iup-3.31_Win64_dllw6_lib/libiupole.a b/libs/IUP/libiupole.a similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/libiupole.a rename to libs/IUP/libiupole.a diff --git a/libs/iup-3.31_Win64_dllw6_lib/libiuptuio.a b/libs/IUP/libiuptuio.a similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/libiuptuio.a rename to libs/IUP/libiuptuio.a diff --git a/libs/iup-3.31_Win64_dllw6_lib/libzlib1.a b/libs/IUP/libzlib1.a similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/libzlib1.a rename to libs/IUP/libzlib1.a diff --git a/libs/iup-3.31_Win64_dllw6_lib/zlib1.dll b/libs/IUP/zlib1.dll similarity index 100% rename from libs/iup-3.31_Win64_dllw6_lib/zlib1.dll rename to libs/IUP/zlib1.dll