Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mag-core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
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
Scientific Software
Takin
mag-core
Commits
745ae275
Verified
Commit
745ae275
authored
Jan 19, 2021
by
Tobias WEBER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added system-specific build options
parent
2b18ed06
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
0 deletions
+45
-0
tools/magstructfact/CMakeLists.txt
tools/magstructfact/CMakeLists.txt
+10
-0
tools/pol/CMakeLists.txt
tools/pol/CMakeLists.txt
+25
-0
tools/structfact/CMakeLists.txt
tools/structfact/CMakeLists.txt
+10
-0
No files found.
tools/magstructfact/CMakeLists.txt
View file @
745ae275
...
...
@@ -10,6 +10,16 @@ project(magstructfact)
set
(
CMAKE_VERBOSE_MAKEFILE TRUE
)
option
(
BUILD_LIB
"build as dynamic library"
FALSE
)
# system specific settings
message
(
"Building for
${
CMAKE_SYSTEM_NAME
}
systems."
)
if
(
CMAKE_SYSTEM_NAME STREQUAL
"Windows"
)
# pass linker --subsystem option
add_compile_options
(
-Wl,--subsystem,windows
)
elseif
(
CMAKE_SYSTEM_NAME STREQUAL
"Darwin"
)
add_compile_options
(
-mmacosx-version-min=10.10
)
endif
()
find_package
(
Boost REQUIRED
)
find_package
(
Qt5 REQUIRED COMPONENTS Core Gui Widgets OpenGL
)
...
...
tools/pol/CMakeLists.txt
View file @
745ae275
...
...
@@ -11,19 +11,43 @@ project(pol)
set
(
CMAKE_VERBOSE_MAKEFILE TRUE
)
option
(
BUILD_LIB
"build as dynamic library"
FALSE
)
# -----------------------------------------------------------------------------
# system specific settings
message
(
"Building for
${
CMAKE_SYSTEM_NAME
}
systems."
)
if
(
CMAKE_SYSTEM_NAME STREQUAL
"Windows"
)
# pass linker --subsystem option
add_compile_options
(
-Wl,--subsystem,windows
)
elseif
(
CMAKE_SYSTEM_NAME STREQUAL
"Darwin"
)
add_compile_options
(
-mmacosx-version-min=10.10
)
endif
()
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# packages
find_package
(
Boost REQUIRED
)
find_package
(
Qt5 REQUIRED COMPONENTS Core Gui Widgets OpenGL
)
set
(
CMAKE_AUTOUIC TRUE
)
set
(
CMAKE_AUTOMOC TRUE
)
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# compiler settings
set
(
CMAKE_CXX_STANDARD 20
)
add_compile_options
(
-std=c++20
)
add_compile_options
(
${
Boost_CXX_FLAGS
}
)
add_compile_options
(
-Wall -Wextra
)
include_directories
(
"
${
PROJECT_SOURCE_DIR
}
"
"
${
Boost_INCLUDE_DIRS
}
/.."
"../.."
)
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# output
if
(
BUILD_LIB
)
set
(
CMAKE_POSITION_INDEPENDENT_CODE TRUE
)
...
...
@@ -37,3 +61,4 @@ endif()
target_link_libraries
(
takin_pol
${
Boost_LIBRARIES
}
)
qt5_use_modules
(
takin_pol Core Gui Widgets OpenGL
)
# -----------------------------------------------------------------------------
tools/structfact/CMakeLists.txt
View file @
745ae275
...
...
@@ -10,6 +10,16 @@ project(structfact)
set
(
CMAKE_VERBOSE_MAKEFILE TRUE
)
option
(
BUILD_LIB
"build as dynamic library"
FALSE
)
# system specific settings
message
(
"Building for
${
CMAKE_SYSTEM_NAME
}
systems."
)
if
(
CMAKE_SYSTEM_NAME STREQUAL
"Windows"
)
# pass linker --subsystem option
add_compile_options
(
-Wl,--subsystem,windows
)
elseif
(
CMAKE_SYSTEM_NAME STREQUAL
"Darwin"
)
add_compile_options
(
-mmacosx-version-min=10.10
)
endif
()
find_package
(
Boost REQUIRED
)
find_package
(
Qt5 REQUIRED COMPONENTS Core Gui Widgets OpenGL
)
...
...
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