Skip to content

Commit

Permalink
fix README.md installation
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewprzh committed Oct 12, 2018
1 parent c156d77 commit 8ea4665
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion assembler/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,15 @@ if (NOT OPENMP_FOUND)
add_compile_options(-Wno-unknown-pragmas)
endif()

# Looking for README.md
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../README.md")
#installing from archive
set(README_MD_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../README.md")
else()
#installing from the repo
set(README_MD_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../README.md")
endif()

# sub projects
add_subdirectory(common)
add_subdirectory(projects)
Expand Down Expand Up @@ -127,7 +136,7 @@ install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../test_dataset_plasmid"
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/../manual.html"
DESTINATION share/spades
COMPONENT runtime)
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/../../README.md"
install(FILES "${README_MD_PATH}"
DESTINATION share/spades
COMPONENT runtime)
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/../truspades_manual.html"
Expand Down

0 comments on commit 8ea4665

Please sign in to comment.