Skip to content

Commit

Permalink
modify installation
Browse files Browse the repository at this point in the history
  • Loading branch information
loriab committed Jun 13, 2016
1 parent fd8ea80 commit a2e7e08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

if(ENABLE_PYTHON)
install(DIRECTORY ambit DESTINATION lib FILES_MATCHING PATTERN "*.py")
install(DIRECTORY ambit DESTINATION ${PYTHON_SITE_PACKAGES} FILES_MATCHING PATTERN "*.py")
install(FILES np_test.py test_blocks.py test_operators.py DESTINATION ${PYTHON_SITE_PACKAGES}/ambit/tests)
endif()
2 changes: 1 addition & 1 deletion src/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ target_link_libraries(pyambit ambit ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES} ${Boos
set_target_properties(pyambit PROPERTIES PREFIX "")
set_target_properties(pyambit PROPERTIES SUFFIX ${PYTHON_MODULE_EXTENSION})

install(TARGETS pyambit DESTINATION lib/ambit)
install(TARGETS pyambit DESTINATION ${PYTHON_SITE_PACKAGES}/ambit)

endif()

0 comments on commit a2e7e08

Please sign in to comment.