Skip to content
Snippets Groups Projects
Commit 4c8690ba authored by Antoine Lorence's avatar Antoine Lorence
Browse files

[CMake] Set proper windows specific flags when needed

parent e843e406
No related branches found
No related tags found
No related merge requests found
......@@ -186,13 +186,12 @@ qt5_add_translation(QM_FILES ${TS_FILES})
# -2- Update translations files with changes from c++ sources
# qt5_create_translation(QM_FILES ${eiimage_SOURCES} ${TS_FILES})
# Apply only on MinGW / Cygwin under Windows
if(WIN32 AND CMAKE_COMPILER_IS_GNUCXX)
# Don't require libstdc++**.dll when running the program
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libstdc++")
# Avoid awful console on Windows
if(WIN32)
set(EXTRA_FLAGS WIN32)
endif()
add_executable(eiimage ${eiimage_SOURCES} ${WRAPPED_UIS} ${UIS} ${TS_FILES} ${RCC_FILES})
add_executable(eiimage ${EXTRA_FLAGS} ${eiimage_SOURCES} ${WRAPPED_UIS} ${UIS} ${TS_FILES} ${RCC_FILES})
target_link_libraries(eiimage
core
Qt5::Core
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment