Commit 98bad771 authored by Elisa Rebolini's avatar Elisa Rebolini
Browse files

compil option for development code

parent 0426c619
......@@ -154,8 +154,14 @@ add_dependencies(RelaxSE_lib RelaxSE_type)
add_dependencies(RelaxSE_lib RelaxSE_IO)
add_dependencies(RelaxSE_lib RelaxSE_common)
if(ENABLE_DEV)
add_library(RelaxSE_prop
${RELAXSE_SOURCES_prop}
${RELAXSE_dev})
else()
add_library(RelaxSE_prop
${RELAXSE_SOURCES_prop})
endif()
add_dependencies(RelaxSE_prop RelaxSE_type)
add_dependencies(RelaxSE_prop RelaxSE_IO)
add_dependencies(RelaxSE_prop RelaxSE_common)
......@@ -197,7 +203,7 @@ if(ENABLE_NOGEN)
execute_process(COMMAND cp -r ${CMAKE_SOURCE_DIR}/src/generator/update_gencode.sh ${CMAKE_BINARY_DIR}/)
### SASS program
### RelaxSE program (nogen)
add_executable(relaxse.x src/RelaxSE.F90)
target_link_libraries(relaxse.x
RelaxSE_lib
......@@ -208,7 +214,7 @@ if(ENABLE_NOGEN)
${BLAS_LIBRARIES}
)
else()
### SASS program
### RelaxSE program (gen)
add_executable(relaxse.x src/RelaxSE.F90)
target_link_libraries(relaxse.x
RelaxSE_lib
......
......@@ -94,8 +94,4 @@ set(RELAXSE_gen_SOURCES
)
set(RELAXSE_SOURCES_prop
src/generator/dev/dens.F90
)
include(RelaxSE_prop)
set(RELAXSE_dev
src/generator/dev/dens.F90
)
......@@ -3,6 +3,8 @@ set(RELAXSE_SOURCES_prop
src/lect_data_prop.F90
src/def_files_prop.F90
src/init_prop.F90
src/info_prop.F90
src/generator/dev/dens.F90
src/info_prop.F90
)
......@@ -84,6 +84,10 @@ def parse_input():
action='store_true',
default=False,
help='disable generated code [default: %(default)s]')
group.add_argument('--dev',
action='store_true',
default=False,
help='enable development code [default: %(default)s]')
group = parser.add_argument_group('parallelization')
group.add_argument('--mpi',
......@@ -154,6 +158,7 @@ def gen_cmake_command(args):
command += ' -DENABLE_MPI=%s' % translate_cmake(args.mpi)
command += ' -DENABLE_OMP=%s' % translate_cmake(args.omp)
command += ' -DENABLE_NOGEN=%s' % translate_cmake(args.nogen)
command += ' -DENABLE_DEV=%s' % translate_cmake(args.dev)
if args.build_type:
command += ' -DCMAKE_BUILD_TYPE=%s' % args.build_type
......
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