From bee830bd427cad2e5150712cde65e0eb436c16cb Mon Sep 17 00:00:00 2001 From: Kuoi Date: Sun, 14 Jan 2024 22:53:27 +0800 Subject: [PATCH] fix: CMakeList.txt for full project --- CMakeLists.txt | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index faa07fe..7ee359d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,15 +1,13 @@ cmake_minimum_required(VERSION 3.0) -project(tnt2winclada) +project(tnt_script) SET( CMAKE_EXPORT_COMPILE_COMMANDS ON ) 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 LICENSE DESTINATION /usr/share/licenses/tnt2winclada) -install(FILES README.md DESTINATION /usr/share/doc/tnt2winclada) +install(FILES LICENSE DESTINATION /usr/share/licenses/tnt-guoyi-script) +install(FILES README.md DESTINATION /usr/share/doc/tnt-guoyi-script)