2014-11-11 08:31:13 +00:00
|
|
|
# CMakeList.txt for linear code
|
|
|
|
cmake_minimum_required (VERSION 2.8.9)
|
|
|
|
|
|
|
|
project(Timedomain1DEuler)
|
|
|
|
|
|
|
|
add_definitions(-DTRACERNAME=timedomaineuler -DARMA_USE_BLAS -DARMA_USE_LAPACK)
|
|
|
|
|
|
|
|
############################## Not so often changed
|
|
|
|
|
|
|
|
# -pipe Use pipes rather than temporary files for communication
|
|
|
|
# between the various stages of compilation. This fails to
|
|
|
|
# work on some systems where the assembler is unable to
|
|
|
|
# read from a pipe; but the GNU assembler has no troubl.
|
|
|
|
|
|
|
|
|
|
|
|
set (CMAKE_GCC " -Wno-unused-function -ffunction-sections -fdata-sections -Wno-unused-local-typedefs -Wno-empty-body")
|
|
|
|
|
2015-01-27 09:00:35 +00:00
|
|
|
set (CMAKE_GENERAL "${CMAKE_GENERAL} -std=c++11 -pipe -O2 -fPIC -Wall \
|
2014-11-11 08:31:13 +00:00
|
|
|
-Wextra -Wno-unused-parameter \
|
|
|
|
-Wno-unused-variable -Wno-unused-but-set-variable \
|
|
|
|
-Wno-return-local-addr -Wno-cpp -Wno-address")
|
|
|
|
|
|
|
|
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_GENERAL} ${CMAKE_GCC}")
|
|
|
|
|
2015-01-27 09:00:35 +00:00
|
|
|
# link_directories(${link_directories} /usr/local/lib)
|
2014-11-11 08:31:13 +00:00
|
|
|
include_directories(
|
2015-01-27 09:00:35 +00:00
|
|
|
../tmtubes/src/nonlinear/sys
|
|
|
|
../tmtubes/src/nonlinear/seg
|
|
|
|
../tmtubes/src/nonlinear/geom
|
|
|
|
../tmtubes/src/nonlinear/geom/grid
|
2014-11-11 08:31:13 +00:00
|
|
|
../tmtubes/src/common
|
|
|
|
../tmtubes/src/common/gas
|
|
|
|
../tmtubes/src/common/solid
|
2015-01-27 09:00:35 +00:00
|
|
|
src
|
2014-11-11 08:31:13 +00:00
|
|
|
)
|
|
|
|
AUX_SOURCE_DIRECTORY(src src)
|
2015-01-27 09:00:35 +00:00
|
|
|
link_directories(/home/anne/bin/lib)
|
2014-11-11 08:31:13 +00:00
|
|
|
add_executable(timedomaineuler timedomain.cpp ${src})
|
|
|
|
|
2015-01-27 09:00:35 +00:00
|
|
|
target_link_libraries(timedomaineuler nonlin armadillo boost_program_options)
|
2014-11-11 08:31:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|