Skip to content

Commit

Permalink
Add fextract and fcompare as part of the install
Browse files Browse the repository at this point in the history
  • Loading branch information
mic84 committed Mar 30, 2017
1 parent 943815a commit c755ceb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ include(InstallManager)
# Source files for all binaries and libraries found under src
add_subdirectory(Src)

# Source file for postprocess exes
add_subdirectory(Tools/Postprocessing/F_Src)

# Make the exports only _after_ doing the build
create_exports()

Expand Down
12 changes: 12 additions & 0 deletions Tools/Postprocessing/F_Src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
set( FSRC fcompare.f90 fextract.f90 )

foreach ( MAIN ${FSRC} )

string(REPLACE ".f90" "" THIS_EXE ${MAIN} )

add_executable( ${THIS_EXE} ${MAIN} )
target_link_libraries(${THIS_EXE} fboxlib cboxlib fboxlib cfboxlib
box_camrdata ${MPI_Fortran_LIBRARIES})
add_install_binary(${THIS_EXE})

endforeach ()

0 comments on commit c755ceb

Please sign in to comment.