File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,15 @@ if (NOT OPENMP_FOUND)
8686 add_compile_options (-Wno-unknown-pragmas)
8787endif ()
8888
89+ # Looking for README.md
90+ if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR} /../README.md" )
91+ #installing from archive
92+ set (README_MD_PATH "${CMAKE_CURRENT_SOURCE_DIR} /../README.md" )
93+ else ()
94+ #installing from the repo
95+ set (README_MD_PATH "${CMAKE_CURRENT_SOURCE_DIR} /../../README.md" )
96+ endif ()
97+
8998# sub projects
9099add_subdirectory (common)
91100add_subdirectory (projects)
@@ -127,7 +136,7 @@ install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../test_dataset_plasmid"
127136install (FILES "${CMAKE_CURRENT_SOURCE_DIR} /../manual.html"
128137 DESTINATION share/spades
129138 COMPONENT runtime)
130- install (FILES "${CMAKE_CURRENT_SOURCE_DIR} /../../README.md "
139+ install (FILES "${README_MD_PATH} "
131140 DESTINATION share/spades
132141 COMPONENT runtime)
133142install (FILES "${CMAKE_CURRENT_SOURCE_DIR} /../truspades_manual.html"
You can’t perform that action at this time.
0 commit comments