Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sfx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
inmcm-mirror
sfx
Commits
e575c61f
Commit
e575c61f
authored
7 months ago
by
数学の武士
Browse files
Options
Downloads
Patches
Plain Diff
Add timer
parent
c639aa34
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+20
-2
20 additions, 2 deletions
CMakeLists.txt
with
20 additions
and
2 deletions
CMakeLists.txt
+
20
−
2
View file @
e575c61f
...
@@ -4,14 +4,24 @@ option(INCLUDE_CUDA "GPU build in mode" OFF)
...
@@ -4,14 +4,24 @@ option(INCLUDE_CUDA "GPU build in mode" OFF)
option
(
USE_CXX
"CXX build in mode"
OFF
)
option
(
USE_CXX
"CXX build in mode"
OFF
)
option
(
BUILD_DOC
"Build documentation"
OFF
)
option
(
BUILD_DOC
"Build documentation"
OFF
)
option
(
SFX_CHECK_NAN
"Build documentation"
OFF
)
option
(
SFX_CHECK_NAN
"Build documentation"
OFF
)
option
(
USE_JIKAN_TIMER
"Jikan timer build in mode"
OFF
)
option
(
USE_CONFIG_PARSER
"Build config parser"
ON
)
option
(
USE_CONFIG_PARSER
"Build config parser"
ON
)
option
(
VTUNE_FLAGS
" "
OFF
)
option
(
VTUNE_FLAGS
" "
OFF
)
include
(
FetchContent
)
project
(
INMCM_sfx
)
project
(
INMCM_sfx
)
enable_language
(
Fortran
)
enable_language
(
Fortran
)
include
(
FetchContent
)
if
(
USE_JIKAN_TIMER
)
FetchContent_Declare
(
jikan_timer
GIT_REPOSITORY http://tesla.parallel.ru/Lizzzka007/Timer.git
GIT_TAG v1.0
)
FetchContent_MakeAvailable
(
jikan_timer
)
FetchContent_GetProperties
(
jikan_timer
)
endif
(
USE_JIKAN_TIMER
)
if
(
BUILD_DOC
)
if
(
BUILD_DOC
)
find_package
(
Doxygen
)
find_package
(
Doxygen
)
if
(
DOXYGEN_FOUND
)
if
(
DOXYGEN_FOUND
)
...
@@ -168,6 +178,14 @@ if(USE_CONFIG_PARSER)
...
@@ -168,6 +178,14 @@ if(USE_CONFIG_PARSER)
target_link_libraries
(
sfx_lib config_parser_F config_parser_CXX
)
target_link_libraries
(
sfx_lib config_parser_F config_parser_CXX
)
endif
(
USE_CONFIG_PARSER
)
endif
(
USE_CONFIG_PARSER
)
if
(
USE_JIKAN_TIMER
)
target_include_directories
(
sfx PUBLIC
${
jikan_timer_SOURCE_DIR
}
)
target_link_libraries
(
sfx timerF timerCXX
)
target_include_directories
(
sfx_lib PUBLIC
${
jikan_timer_SOURCE_DIR
}
)
target_link_libraries
(
sfx_lib timerF timerCXX
)
endif
(
USE_JIKAN_TIMER
)
set_property
(
TARGET sfx_lib PROPERTY LINKER_LANGUAGE Fortran
)
set_property
(
TARGET sfx_lib PROPERTY LINKER_LANGUAGE Fortran
)
if
(
"
${
CMAKE_SYSTEM_NAME
}
"
STREQUAL
"Darwin"
)
if
(
"
${
CMAKE_SYSTEM_NAME
}
"
STREQUAL
"Darwin"
)
SET
(
CMAKE_C_ARCHIVE_CREATE
"<CMAKE_AR> Scr <TARGET> <LINK_FLAGS> <OBJECTS>"
)
SET
(
CMAKE_C_ARCHIVE_CREATE
"<CMAKE_AR> Scr <TARGET> <LINK_FLAGS> <OBJECTS>"
)
...
...
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