Commit 6f0c8785 authored by Ludovic Fauvet's avatar Ludovic Fauvet

cmake: add the icon into the resources (mingw only)

parent a303cfdd
IDI_ICON1 ICON DISCARDABLE "share/vlmc.ico"
......@@ -11,6 +11,8 @@ SET(CMAKE_SYSTEM_VERSION 1)
# specify the cross compiler
SET(CMAKE_C_COMPILER i486-mingw32-gcc)
SET(CMAKE_CXX_COMPILER i486-mingw32-g++)
SET(CMAKE_WINDRES i486-mingw32-windres)
# where is the target environment
SET(CMAKE_FIND_ROOT_PATH ${CMAKE_SOURCE_DIR}/contribs)
......
......@@ -274,6 +274,15 @@ ELSE(NOT WITH_GUI)
QT4_ADD_RESOURCES(VLMC_RCC_SRCS ${VLMC_RCC})
QT4_WRAP_CPP(VLMC_MOC_SRCS ${VLMC_HDRS})
IF(MINGW)
# resource compilation for MinGW
ADD_CUSTOM_COMMAND( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/icon.o
COMMAND ${CMAKE_WINDRES} -I${CMAKE_SOURCE_DIR} -i${CMAKE_SOURCE_DIR}/cmake/icon.rc
-o ${CMAKE_CURRENT_BINARY_DIR}/icon.o )
SET(VLMC_SRCS ${VLMC_SRCS} ${CMAKE_CURRENT_BINARY_DIR}/icon.o)
SET(LINK_FLAGS -Wl,-subsystem,windows)
ENDIF(MINGW)
IF(WIN32)
SET( GUI_TYPE WIN32 )
ENDIF( WIN32 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment