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

@ -1,16 +1,19 @@
cmake_minimum_required(VERSION 3.0)
project(RGB_EPP)
set( CMAKE_EXPORT_COMPILE_COMMANDS ON )
set(CMAKE_EXPORT_COMPILE_COMMANDS ON )
set(CMAKE_CXX_STANDARD 17)
set(EXECUTABLE_INSTALL_PATH "/usr/bin")
set(SCRIPT_INSTALL_PATH "/usr/bin")
add_executable(splitfasta splitfasta.cpp)
add_executable(sortdiamond sortdiamond.cpp)
target_compile_options(splitfasta 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 splitfasta DESTINATION /usr/bin/splitfasta)
install(FILES sortdiamond DESTINATION /usr/bin/sortdiamond)
install(FILES RGBEPP.sh DESTINATION ${SCRIPT_INSTALL_PATH})
install(TARGETS splitfasta DESTINATION ${EXECUTABLE_INSTALL_PATH})
install(TARGETS sortdiamond DESTINATION ${EXECUTABLE_INSTALL_PATH})

0
RGBEPP.sh Normal file → Executable file
View file