Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baichixing
ygopro
Commits
e8a72187
Commit
e8a72187
authored
Dec 15, 2019
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update cmake build
parent
125b8aec
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
4 deletions
+31
-4
CMakeLists.txt
CMakeLists.txt
+5
-1
cmake/compiler/gcc.cmake
cmake/compiler/gcc.cmake
+0
-1
cmake/compiler/msvc.cmake
cmake/compiler/msvc.cmake
+1
-0
cmake/macros/MSVCJustMyCodeDebugging.cmake
cmake/macros/MSVCJustMyCodeDebugging.cmake
+20
-0
cmake/platform/xcode.cmake
cmake/platform/xcode.cmake
+0
-1
gframe/CMakeLists.txt
gframe/CMakeLists.txt
+5
-1
No files found.
CMakeLists.txt
View file @
e8a72187
project
(
ygo
)
cmake_minimum_required
(
VERSION
2
.8
)
cmake_minimum_required
(
VERSION
3
.8
)
if
(
NOT CMAKE_BUILD_TYPE
)
message
(
STATUS
"Setting build type to 'Debug' as none was specified."
)
...
...
@@ -15,6 +15,10 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set
(
CMAKE_LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
/lib
)
set
(
CMAKE_RUNTIME_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
/bin
)
set
(
CMAKE_CXX_STANDARD 14
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
set
(
CMAKE_CXX_EXTENSIONS OFF
)
include
(
AutoFiles
)
include
(
platform/settings
)
...
...
cmake/compiler/gcc.cmake
View file @
e8a72187
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=c++14"
)
set
(
CMAKE_C_FLAGS_DEBUG
"
${
CMAKE_C_FLAGS_DEBUG
}
-D_DEBUG"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
-D_DEBUG"
)
add_definitions
(
"-fexceptions"
"-fomit-frame-pointer"
"-fno-strict-aliasing"
"-Wno-format-security"
)
cmake/compiler/msvc.cmake
View file @
e8a72187
...
...
@@ -3,3 +3,4 @@ add_definitions ( "-D_UNICODE" "-DUNICODE" "/utf-8" )
include
(
MSVCMultipleProcessCompile
)
include
(
MSVCStaticRuntime
)
include
(
MSVCJustMyCodeDebugging
)
cmake/macros/MSVCJustMyCodeDebugging.cmake
0 → 100644
View file @
e8a72187
# - Enable Just My Code debugging on MSVC
#
# include(MSVCJustMyCodeDebugging)
#
# Requires these CMake modules:
# ListCombinations.cmake
if
(
MSVC AND NOT
"
${
MSVC_VERSION
}
"
LESS 1918
)
# Only available in VS 2017 15.8 and newer
include
(
ListCombinations
)
list_combinations
(
_varnames
PREFIXES
CMAKE_CXX_FLAGS_
SUFFIXES
DEBUG
RELWITHDEBINFO
)
foreach
(
_var
${
_varnames
}
)
set
(
${
_var
}
"
${${
_var
}}
/JMC"
)
endforeach
()
endif
()
cmake/platform/xcode.cmake
View file @
e8a72187
set
(
CMAKE_XCODE_ATTRIBUTE_GCC_VERSION
"com.apple.compilers.llvm.clang.1_0"
)
set
(
CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD
"c++14"
)
set
(
CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY
"libc++"
)
gframe/CMakeLists.txt
View file @
e8a72187
...
...
@@ -16,7 +16,11 @@ endif ()
if
(
MSVC
)
add_executable
(
ygopro WIN32
${
AUTO_FILES_RESULT
}
)
set_target_properties
(
ygopro PROPERTIES LINK_FLAGS /ENTRY:
"mainCRTStartup"
)
set_target_properties
(
ygopro PROPERTIES
LINK_FLAGS /ENTRY:
"mainCRTStartup"
VS_DEBUGGER_WORKING_DIRECTORY
"
${
CMAKE_SOURCE_DIR
}
"
)
set_property
(
DIRECTORY
${
CMAKE_SOURCE_DIR
}
PROPERTY VS_STARTUP_PROJECT ygopro
)
else
()
add_executable
(
ygopro
${
AUTO_FILES_RESULT
}
)
endif
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment