diff --git a/resources/msw/kipython-dll.rc b/resources/msw/kipython-dll.rc new file mode 100644 index 0000000000..3ad2530501 --- /dev/null +++ b/resources/msw/kipython-dll.rc @@ -0,0 +1,4 @@ +#define RC_VER_FILE_DESCRIPTION "KiCad Python Interface " KICAD_WIN32_RC_PRODVER_STR +#define RC_VER_INTERNALNAME "_kipython" +#define RC_VER_ORIGINALFILENAME "_kipython.dll" +#include "kiwin32-dll.rc" diff --git a/scripting/CMakeLists.txt b/scripting/CMakeLists.txt index 07e7e33d9a..6455ab7120 100644 --- a/scripting/CMakeLists.txt +++ b/scripting/CMakeLists.txt @@ -47,6 +47,10 @@ target_include_directories( scripting_kiface PRIVATE ${Boost_INCLUDE_DIR} ) +if( MSVC ) + target_sources( scripting_kiface PRIVATE ${CMAKE_SOURCE_DIR}/resources/msw/kipython-dll.rc ) +endif() + target_link_libraries( scripting_kiface scripting )