Skip to content

Commit

Permalink
cmakelists in gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
haykh committed Jun 19, 2024
1 parent e0c8769 commit 2c977ed
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
set(executable ${PROJECT_NAME}.xc)
file(GLOB_RECURSE SOURCES *.F90)
add_executable(${executable} ${SOURCES} ${userfile})
target_include_directories(${executable} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/algorithms)
target_include_directories(${executable} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/algorithms/fieldsolvers)
target_include_directories(${executable} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/algorithms/gca)
target_include_directories(${executable} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/algorithms/vay)
target_include_directories(${executable} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/algorithms/boris)
target_include_directories(${executable} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/tools)

if (${hdf5} STREQUAL "ON")
target_link_libraries(${executable} HDF5::HDF5)
endif()

0 comments on commit 2c977ed

Please sign in to comment.