Newer
Older
cmake_minimum_required(VERSION 2.8)
PROJECT(Nektar-exercises)
FIND_PACKAGE(Nektar++ PATHS ../../builds)
INCLUDE_DIRECTORIES(${NEKTAR++_INCLUDE_DIRS})
INCLUDE_DIRECTORIES(${NEKTAR++_TP_INCLUDE_DIRS})
LINK_DIRECTORIES(${NEKTAR++_LIBRARY_DIRS})
LINK_DIRECTORIES(${NEKTAR++_TP_LIBRARY_DIRS})
ADD_DEFINITIONS(${NEKTAR++_DEFINITIONS})
SET(LinkLibraries StdRegions)
SET(NekExerciseDir ${PROJECT_SOURCE_DIR})
SET(StdIntegration1DSource ${NekExerciseDir}/StdIntegration1D.cpp)
ADD_EXECUTABLE(StdIntegration1D ${StdIntegration1DSource})
TARGET_LINK_LIBRARIES(StdIntegration1D ${NEKTAR++_LIBRARIES})
SET(StdDifferentiation1DSource ${NekExerciseDir}/StdDifferentiation1D.cpp)
ADD_EXECUTABLE(StdDifferentiation1D ${StdDifferentiation1DSource})
TARGET_LINK_LIBRARIES(StdDifferentiation1D ${NEKTAR++_LIBRARIES})
SET(StdInterpolation1DSource ${NekExerciseDir}/StdInterpolation1D.cpp)
ADD_EXECUTABLE(StdInterpolation1D ${StdInterpolation1DSource})
TARGET_LINK_LIBRARIES(StdInterpolation1D ${NEKTAR++_LIBRARIES})