Skip to content
Snippets Groups Projects
Commit 6ed8ecda authored by Langella Olivier's avatar Langella Olivier
Browse files

no console in the windows version

parent 31542f34
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,10 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(xtpcpp CXX)
set(CMAKE_COLOR_MAKEFILE ON)
set(CMAKE_VERBOSE_MAKEFILE ON)
if (MXE)
#x86_64-w64-mingw32.shared-cmake -DCMAKE_BUILD_TYPE=Release -DMXE=1 ..
MESSAGE("MXE (M cross environment) https://mxe.cc/")
......
......@@ -285,7 +285,13 @@ target_compile_definitions(xtpcpp PUBLIC ${QT_DEFINITIONS})
#INCLUDE_DIRECTORIES "${QT_INCLUDE_DIR} ${QT_QTCORE_INCLUDE_DIR}"
)
if (MINGW)
TARGET_LINK_LIBRARIES(xtpcpp
target_compile_options(
xtpcpp PRIVATE -mwindows
)
set_target_properties(xtpcpp PROPERTIES LINK_FLAGS "-Wl,--subsystem,windows ${CMAKE_EXE_LINKER_FLAGS}")
target_link_libraries(xtpcpp
OdsStream::Core
Pappso::Core
Pappso::Widget
......@@ -307,7 +313,7 @@ if (MINGW)
Qt5::Sql
)
else (MINGW)
TARGET_LINK_LIBRARIES(xtpcpp
target_link_libraries(xtpcpp
OdsStream::Core
Pappso::Core
Pappso::Widget
......@@ -323,7 +329,10 @@ else (MINGW)
)
endif (MINGW)
INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/xtpcpp DESTINATION bin)
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/xtpcpp DESTINATION bin)
#configure_file (${CMAKE_SOURCE_DIR}/templates/share/applications/pt-peptideviewer.desktop.cmake ${CMAKE_BINARY_DIR}/templates/share/applications/pt-peptideviewer.desktop)
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