Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
8ad85c7e
Commit
8ad85c7e
authored
13 years ago
by
Gigg, Martyn Anthony
Browse files
Options
Downloads
Patches
Plain Diff
Fixes #2981. Add an option for a console in CMake (only affects windows).
parent
4261cad0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/Mantid/Build/CMake/WindowsSetup.cmake
+3
-1
3 additions, 1 deletion
Code/Mantid/Build/CMake/WindowsSetup.cmake
Code/Mantid/MantidPlot/CMakeLists.txt
+11
-8
11 additions, 8 deletions
Code/Mantid/MantidPlot/CMakeLists.txt
with
14 additions
and
9 deletions
Code/Mantid/Build/CMake/WindowsSetup.cmake
+
3
−
1
View file @
8ad85c7e
##########################################################################
#
##########################################################################
# Set include and library directories so that CMake finds Third_Party
###########################################################################
set
(
CMAKE_INCLUDE_PATH
"
${
THIRD_PARTY
}
/include"
)
...
...
@@ -57,6 +57,8 @@ add_definitions ( -D_USE_MATH_DEFINES -DNOMINMAX )
add_definitions
(
-DGSL_DLL
)
add_definitions
(
-DPOCO_NO_UNWINDOWS
)
set
(
CONSOLE ON CACHE BOOL
"Switch for enabling/disabling the console"
)
set
(
BIN_DIR bin
)
set
(
LIB_DIR
${
BIN_DIR
}
)
set
(
PLUGINS_DIR plugins
)
This diff is collapsed.
Click to expand it.
Code/Mantid/MantidPlot/CMakeLists.txt
+
11
−
8
View file @
8ad85c7e
...
...
@@ -694,6 +694,11 @@ set ( INC_FILES ${QTIPLOT_HDRS} ${MANTID_HDRS} )
###########################################################################
if
(
WIN32
)
set
(
MANTID_RC_FILE icons/MantidPlotDesktop.rc
)
if
(
CONSOLE
)
set
(
WIN_CONSOLE
)
else
()
set
(
WIN_CONSOLE WIN32
)
endif
(
CONSOLE
)
endif
(
WIN32
)
if
(
APPLE
)
...
...
@@ -701,7 +706,7 @@ if ( APPLE )
set_source_files_properties
(
MANTID_RC_FILE PROPERTIES MACOSX_PACKAGE_LOCATION Resources
)
endif
()
add_executable
(
MantidPlot WIN
32
MACOSX_BUNDLE
${
SRC_FILES
}
${
INC_FILES
}
add_executable
(
MantidPlot
${
WIN
_CONSOLE
}
MACOSX_BUNDLE
${
SRC_FILES
}
${
INC_FILES
}
${
MOCCED_FILES
}
${
UI_HDRS
}
${
RES_FILES
}
${
MANTID_RC_FILE
}
)
...
...
@@ -717,15 +722,13 @@ target_link_libraries ( MantidPlot
)
###########################################################################
#
Console and e
ntry point flag
s
for Windows
#
E
ntry point flag for Windows
to ensure we always link to standard main
###########################################################################
if
(
WIN32
)
set_target_properties
(
MantidPlot PROPERTIES LINK_FLAGS_DEBUG
"/SUBSYSTEM:CONSOLE /ENTRY:mainCRTStartup"
)
set_target_properties
(
MantidPlot PROPERTIES COMPILE_DEFINITIONS_DEBUG
"_CONSOLE"
)
set_target_properties
(
MantidPlot PROPERTIES LINK_FLAGS_RELWITHDEBINFO
"/SUBSYSTEM:CONSOLE /ENTRY:mainCRTStartup"
)
set_target_properties
(
MantidPlot PROPERTIES COMPILE_DEFINITIONS_RELWITHDEBINFO
"_CONSOLE"
)
set_target_properties
(
MantidPlot PROPERTIES LINK_FLAGS_RELEASE
"/SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup"
)
set_target_properties
(
MantidPlot PROPERTIES LINK_FLAGS_MINSIZEREL
"/SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup"
)
set_target_properties
(
MantidPlot PROPERTIES LINK_FLAGS
"/ENTRY:mainCRTStartup"
)
if
(
CONSOLE
)
set_target_properties
(
MantidPlot PROPERTIES COMPILE_DEFINITIONS
"_CONSOLE"
)
endif
(
CONSOLE
)
endif
(
WIN32
)
###########################################################################
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment