From: Frederic Bouvier Date: Fri, 28 Jan 2011 18:30:27 +0000 (+0100) Subject: Cmake: set an icon to the Windows executable X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0807cf3ae67a23786119c589d3e126c2cac0ad59;p=flightgear.git Cmake: set an icon to the Windows executable --- diff --git a/src/Main/.gitignore b/src/Main/.gitignore index 5ffcb24f2..d0c58f586 100644 --- a/src/Main/.gitignore +++ b/src/Main/.gitignore @@ -2,3 +2,4 @@ fgfs metar runfgfs runfgfs.bat +flightgear.aps diff --git a/src/Main/CMakeLists.txt b/src/Main/CMakeLists.txt index ff4538c2e..b48d88a70 100644 --- a/src/Main/CMakeLists.txt +++ b/src/Main/CMakeLists.txt @@ -1,4 +1,8 @@ +if (MSVC) + set( RESOURCE_FILE flightgear.rc ) +endif (MSVC) + set(SOURCES CameraGroup.cxx FGEventHandler.cxx @@ -21,6 +25,7 @@ set(SOURCES util.cxx viewer.cxx viewmgr.cxx + ${RESOURCE_FILE} ) add_executable(fgfs ${SOURCES}) diff --git a/src/Main/flightgear.ico b/src/Main/flightgear.ico new file mode 100644 index 000000000..e041319f6 Binary files /dev/null and b/src/Main/flightgear.ico differ diff --git a/src/Main/flightgear.rc b/src/Main/flightgear.rc new file mode 100644 index 000000000..32cb5ae37 --- /dev/null +++ b/src/Main/flightgear.rc @@ -0,0 +1 @@ +FLIGHTGEAR ICON "flightgear.ico"