diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index fa38cb65..b2ad4ee6 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -438,8 +438,11 @@ add_custom_command(
 #
 set(gperf_SRC gperfappgen.cpp gperfappgen.h)
 
-add_executable(gperfappgen ${gperf_SRC})
-
+IF(WIN32)
+    add_executable(gperfappgen.exe ${gperf_SRC})
+ELSE() # Unix
+    add_executable(gperfappgen ${gperf_SRC})
+ENDIF()
 #
 # Run gperfappgen, pipe to gperf input to gperfapphash.gph
 #