fix: CMakeList.txt for full project

This commit is contained in:
kuoi 2024-01-14 22:53:27 +08:00
parent 094422fe97
commit bee830bd42

View file

@ -1,15 +1,13 @@
cmake_minimum_required(VERSION 3.0) cmake_minimum_required(VERSION 3.0)
project(tnt2winclada) project(tnt_script)
SET( CMAKE_EXPORT_COMPILE_COMMANDS ON ) SET( CMAKE_EXPORT_COMPILE_COMMANDS ON )
set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD 11)
add_executable(tnt2winclada tnt2winclada.cpp) add_subdirectory(src_tnt2winclada)
add_subdirectory(src_tnt2figtree)
target_compile_options(tnt2winclada PRIVATE -Wall -Wextra -pedantic)
install(TARGETS tnt2winclada DESTINATION /usr/bin)
install(FILES guoyi.run DESTINATION /usr/share/tnt/tnt_scripts) install(FILES guoyi.run DESTINATION /usr/share/tnt/tnt_scripts)
install(FILES LICENSE DESTINATION /usr/share/licenses/tnt2winclada) install(FILES LICENSE DESTINATION /usr/share/licenses/tnt-guoyi-script)
install(FILES README.md DESTINATION /usr/share/doc/tnt2winclada) install(FILES README.md DESTINATION /usr/share/doc/tnt-guoyi-script)