diff --git a/CMakeLists.txt b/CMakeLists.txt index bea96ee..89da6bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -167,6 +167,12 @@ set(SOURCE_FILES SpaceCadetPinball/imstb_truetype.h ) +# On Windows, include resource file with the icon +if(WIN32) + set_source_files_properties(SpaceCadetPinball/SpaceCadetPinball.rc LANGUAGE RC) + list(APPEND SOURCE_FILES SpaceCadetPinball/SpaceCadetPinball.rc) +endif(WIN32) + add_executable(SpaceCadetPinball ${SOURCE_FILES}) # Skip pch on foreign code diff --git a/SpaceCadetPinball/SpaceCadetPinball.rc b/SpaceCadetPinball/SpaceCadetPinball.rc new file mode 100644 index 0000000..c372b1e --- /dev/null +++ b/SpaceCadetPinball/SpaceCadetPinball.rc @@ -0,0 +1 @@ +ICON_1 ICON "icon_1.ico" \ No newline at end of file