Stephen Seo
41fde43eed
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 48s
"MinimumViableProduct", resolves #2 . TODO: Support de/compressor cmds when creating archive. Support symbolic links when creating archive. Support extracting archive.
46 lines
1.2 KiB
CMake
46 lines
1.2 KiB
CMake
cmake_minimum_required(VERSION 3.7)
|
|
project(SimpleArchiver C)
|
|
|
|
set(SimpleArchiver_VERSION 1.0)
|
|
|
|
set(SimpleArchiver_SOURCES
|
|
src/main.c
|
|
src/parser.c
|
|
src/helpers.c
|
|
src/archiver.c
|
|
src/data_structures/linked_list.c
|
|
src/data_structures/hash_map.c
|
|
src/data_structures/priority_heap.c
|
|
src/algorithms/linear_congruential_gen.c
|
|
)
|
|
|
|
add_compile_options(
|
|
-Wall -Wextra -Wpedantic -Wno-missing-braces
|
|
$<$<COMPILE_LANGUAGE:CXX>:-Weffc++>
|
|
$<$<CONFIG:DEBUG>:-Og>
|
|
)
|
|
|
|
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
|
message(STATUS "Setting build type to 'Debug', none was specified.")
|
|
set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build." FORCE)
|
|
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release")
|
|
endif()
|
|
|
|
add_executable(simplearchiver ${SimpleArchiver_SOURCES})
|
|
|
|
add_executable(test_datastructures
|
|
src/data_structures/test.c
|
|
src/data_structures/linked_list.c
|
|
src/data_structures/hash_map.c
|
|
src/data_structures/priority_heap.c
|
|
src/algorithms/linear_congruential_gen.c
|
|
)
|
|
|
|
add_executable(test_simplearchiver
|
|
src/test.c
|
|
src/parser.c
|
|
src/helpers.c
|
|
src/algorithms/linear_congruential_gen.c
|
|
src/data_structures/linked_list.c
|
|
src/data_structures/hash_map.c
|
|
)
|