fix: build system

This commit is contained in:
kuoi 2024-07-05 19:29:53 +10:00
parent 9e7602de4b
commit 5bfc8c0361
2 changed files with 7 additions and 4 deletions

View file

@ -5,12 +5,15 @@ set( CMAKE_EXPORT_COMPILE_COMMANDS ON )
set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD 17)
set(EXECUTABLE_INSTALL_PATH "/usr/bin")
set(SCRIPT_INSTALL_PATH "/usr/bin")
add_executable(splitfasta splitfasta.cpp) add_executable(splitfasta splitfasta.cpp)
add_executable(sortdiamond sortdiamond.cpp) add_executable(sortdiamond sortdiamond.cpp)
target_compile_options(splitfasta PRIVATE -Wall -Wextra -pedantic -O3) target_compile_options(splitfasta PRIVATE -Wall -Wextra -pedantic -O3)
target_compile_options(sortdiamond PRIVATE -Wall -Wextra -pedantic -O3) target_compile_options(sortdiamond PRIVATE -Wall -Wextra -pedantic -O3)
install(FILES RGBEPP.sh DESTINATION /usr/bin/RGBEPP.sh) install(FILES RGBEPP.sh DESTINATION ${SCRIPT_INSTALL_PATH})
install(FILES splitfasta DESTINATION /usr/bin/splitfasta) install(TARGETS splitfasta DESTINATION ${EXECUTABLE_INSTALL_PATH})
install(FILES sortdiamond DESTINATION /usr/bin/sortdiamond) install(TARGETS sortdiamond DESTINATION ${EXECUTABLE_INSTALL_PATH})

0
RGBEPP.sh Normal file → Executable file
View file