Commit fc1a1633 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

Move diy/grid to utils to allow sharing with analysis code.

parent 49cb84c8
......@@ -35,6 +35,8 @@ option(ENABLE_HISTOGRAM "Enable histogram analysis" ON)
#------------------------------------------------------------------------------
include(mpi)
add_subdirectory(utils)
# Process subdirectories.
if(ENABLE_SENSEI)
message(STATUS "Enabled: Sensei infrastructure.")
......
......@@ -17,10 +17,9 @@ target_include_directories(util PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
# Build the oscillator executable.
add_executable(oscillator ${sources})
target_compile_options(oscillator PRIVATE "-std=c++11")
target_include_directories(oscillator PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include)
# Link with MPI.
target_link_libraries(oscillator PRIVATE mpi)
target_link_libraries(oscillator PRIVATE mpi diy grid)
# Threads
find_package(Threads)
......
add_library(diy INTERFACE)
target_include_directories(diy
SYSTEM INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
add_library(grid INTERFACE)
target_include_directories(grid
SYSTEM INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment