2024-06-26 05:49:53 +08:00
|
|
|
cmake_minimum_required(VERSION 3.6)
|
|
|
|
|
|
|
|
##
|
|
|
|
## PROJECT
|
|
|
|
## name and version
|
|
|
|
##
|
|
|
|
project(gucc
|
|
|
|
VERSION 0.0.1
|
|
|
|
LANGUAGES CXX)
|
|
|
|
|
|
|
|
add_library(${PROJECT_NAME} SHARED
|
|
|
|
#src/utils.cpp src/utils.hpp
|
2024-06-26 20:54:04 +08:00
|
|
|
src/io_utils.cpp include/gucc/io_utils.hpp
|
2024-06-26 20:16:34 +08:00
|
|
|
src/string_utils.cpp include/gucc/string_utils.hpp
|
|
|
|
src/file_utils.cpp include/gucc/file_utils.hpp
|
2024-06-30 01:05:58 +08:00
|
|
|
src/fs_utils.cpp include/gucc/fs_utils.hpp
|
2024-06-26 20:16:34 +08:00
|
|
|
src/cpu.cpp include/gucc/cpu.hpp
|
|
|
|
src/pacmanconf_repo.cpp include/gucc/pacmanconf_repo.hpp
|
|
|
|
src/initcpio.cpp include/gucc/initcpio.hpp
|
2024-06-27 01:14:24 +08:00
|
|
|
src/luks.cpp include/gucc/luks.hpp
|
2024-06-27 05:10:32 +08:00
|
|
|
src/zfs.cpp include/gucc/zfs.hpp
|
2024-06-27 21:07:50 +08:00
|
|
|
src/btrfs.cpp include/gucc/btrfs.hpp
|
2024-06-29 07:38:21 +08:00
|
|
|
src/user.cpp include/gucc/user.hpp
|
2024-06-29 23:07:44 +08:00
|
|
|
src/locale.cpp include/gucc/locale.hpp
|
2024-06-30 07:49:47 +08:00
|
|
|
src/fstab.cpp include/gucc/fstab.hpp
|
2024-07-01 19:50:37 +08:00
|
|
|
src/crypttab.cpp include/gucc/crypttab.hpp
|
2024-07-02 02:21:08 +08:00
|
|
|
src/bootloader.cpp include/gucc/bootloader.hpp
|
2024-07-04 14:59:18 +08:00
|
|
|
src/systemd_services.cpp include/gucc/systemd_services.hpp
|
2024-07-04 15:34:25 +08:00
|
|
|
src/autologin.cpp include/gucc/autologin.hpp
|
2024-07-05 06:40:34 +08:00
|
|
|
src/mtab.cpp include/gucc/mtab.hpp
|
2024-07-05 21:54:33 +08:00
|
|
|
src/umount_partitions.cpp include/gucc/umount_partitions.hpp
|
2024-06-26 05:49:53 +08:00
|
|
|
#src/chwd_profiles.cpp src/chwd_profiles.hpp
|
|
|
|
#src/disk.cpp src/disk.hpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
|
2024-06-26 20:16:34 +08:00
|
|
|
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_DIR}/include)
|
2024-06-26 05:49:53 +08:00
|
|
|
target_link_libraries(${PROJECT_NAME} PUBLIC project_warnings project_options spdlog::spdlog fmt::fmt range-v3::range-v3)
|
|
|
|
|
|
|
|
if(COS_INSTALLER_BUILD_TESTS)
|
|
|
|
add_subdirectory(tests)
|
|
|
|
endif()
|