Skip to content

Commit

Permalink
Move test_pyamgcl out of module
Browse files Browse the repository at this point in the history
  • Loading branch information
ddemidov committed Nov 1, 2014
1 parent b9656d0 commit e30c77b
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions pyamgcl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,17 @@ if (NUMPY_FOUND)
set_target_properties(pyamgcl_ext PROPERTIES PREFIX "")
target_link_Libraries(pyamgcl_ext ${Boost_LIBRARIES})

foreach(py __init__.py test_pyamgcl)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/${py}
${CMAKE_CURRENT_BINARY_DIR}/${py}
COPYONLY
)
endforeach()
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/__init__.py
${CMAKE_CURRENT_BINARY_DIR}/__init__.py
COPYONLY
)

configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/test_pyamgcl
${CMAKE_CURRENT_BINARY_DIR}/../test_pyamgcl
COPYONLY
)

add_test(test_pyamgcl test_pyamgcl)
add_test(test_pyamgcl ${CMAKE_CURRENT_BINARY_DIR}/../test_pyamgcl)
endif()

0 comments on commit e30c77b

Please sign in to comment.