From c95f7b6d1b9076199847c09791d44ae914d4775b Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Tue, 18 Nov 2025 19:16:20 +0900 Subject: [PATCH] things --- CMakeLists.txt | 6 ++++++ mbiff/CMakeLists.txt | 27 +-------------------------- 2 files changed, 7 insertions(+), 26 deletions(-) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..9dc9784 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,6 @@ +cmake_minimum_required(VERSION 3.25) +project( + mdeutils +) + +add_subdirectory(mbiff) diff --git a/mbiff/CMakeLists.txt b/mbiff/CMakeLists.txt index 4bdbbde..9b32e4c 100644 --- a/mbiff/CMakeLists.txt +++ b/mbiff/CMakeLists.txt @@ -1,26 +1 @@ -project( - mbiff -) - -file( - GLOB - mbiff_SRC - *.c -) - -add_executable( - mbiff - ${mbiff_SRC} -) - -target_link_libraries( - mbiff - PRIVATE - MDELib Mw -) - -include(GNUInstallDirs) -install( - TARGETS mbiff - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} -) +setup_project(mbiff ${CMAKE_INSTALL_BINDIR})