Skip to content
Snippets Groups Projects
Commit e575c61f authored by 数学の武士's avatar 数学の武士
Browse files

Add timer

parent c639aa34
No related branches found
No related tags found
No related merge requests found
......@@ -4,14 +4,24 @@ option(INCLUDE_CUDA "GPU build in mode" OFF)
option(USE_CXX "CXX build in mode" OFF)
option(BUILD_DOC "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(VTUNE_FLAGS " " OFF)
include(FetchContent)
project(INMCM_sfx)
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)
find_package(Doxygen)
if (DOXYGEN_FOUND)
......@@ -168,6 +178,14 @@ if(USE_CONFIG_PARSER)
target_link_libraries(sfx_lib config_parser_F config_parser_CXX)
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)
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
SET(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> Scr <TARGET> <LINK_FLAGS> <OBJECTS>")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment