diff --git a/CMakeLists.txt b/CMakeLists.txt index 11d2e50a42..b6b9142fcb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -164,10 +164,26 @@ endif () set_target_properties(_CuraEngine PROPERTIES COMPILE_DEFINITIONS "VERSION=\"${CURA_ENGINE_VERSION}\"") +if(WIN32) + message(STATUS "Using windres") + set(RES_FILES "CuraEngine.rc") + set(CMAKE_RC_COMPILER_INIT windres) + ENABLE_LANGUAGE(RC) + SET(CMAKE_RC_COMPILE_OBJECT + " -O coff -i -o " + ) +endif(WIN32) + if (UNIX) target_link_libraries(_CuraEngine pthread) endif() -add_executable(CuraEngine src/main.cpp) #Then compile main.cpp as separate executable, and link the library to it. + +if (NOT WIN32) + add_executable(CuraEngine src/main.cpp) # Then compile main.cpp as separate executable, and link the library to it. +else() + add_executable(CuraEngine src/main.cpp ${RES_FILES}) # ..., but don't forget the glitter! +endif(NOT WIN32) + target_link_libraries(CuraEngine _CuraEngine) # Compiling the test environment. diff --git a/CuraEngine.ico b/CuraEngine.ico new file mode 100644 index 0000000000..568c0a7237 Binary files /dev/null and b/CuraEngine.ico differ diff --git a/CuraEngine.rc b/CuraEngine.rc new file mode 100644 index 0000000000..5c22aaae59 --- /dev/null +++ b/CuraEngine.rc @@ -0,0 +1,25 @@ +main ICON "CuraEngine.ico" + +1 VERSIONINFO +FILEVERSION 1,0,0,0 +PRODUCTVERSION 1,0,0,0 +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "080904E4" + BEGIN + VALUE "CompanyName", "Ultimaker BV." + VALUE "FileDescription", "Slicing engine for Cura" + VALUE "FileVersion", "1.0" + VALUE "InternalName", "CuraEngine" + VALUE "LegalCopyright", "Ultimaker BV." + VALUE "OriginalFilename", "CuraEngine.exe" + VALUE "ProductName", "CuraEngine" + VALUE "ProductVersion", "1.0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x809, 1252 + END +END