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

Add fortran test

parent a8f56a80
No related branches found
No related tags found
No related merge requests found
cmake_minimum_required(VERSION 3.0)
enable_language(Fortran)
# enable_language(CXX)
# set(CMAKE_CXX_STANDARD 11)
# set(CMAKE_Fortran_FLAGS " -cpp ")
link_directories(/home/elizabeth/Prog/Timer/build)
file(COPY /home/elizabeth/Prog/Timer/build/jikan.mod DESTINATION ${CMAKE_CURRENT_SOURCE_DIR})
add_executable(exec main.F90)
set_property(TARGET exec PROPERTY LINKER_LANGUAGE CXX)
target_link_libraries(exec
libtimerF.a
libtimerCXX.a
)
\ No newline at end of file
! #include "../JikanF.h"
program hello
USE JIKAN
INTEGER :: i
do i = 1, 50
call timer_start_f("SS", 1)
print *, 'Hello, World!'
call timer_end_f("SS", 1, 0)
end do
call write_output_f()
end program hello
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment