mirror of
https://github.com/Vita3K/libfat16.git
synced 2024-11-26 23:10:24 +00:00
18 lines
366 B
CMake
18 lines
366 B
CMake
project(FAT16)
|
|
cmake_minimum_required(VERSION 3.2)
|
|
|
|
option(BUILD_EXAMPLES "Build the examples project as well" OFF)
|
|
|
|
add_library(FAT16
|
|
include/fat16/fat16.h
|
|
src/fat16.cpp)
|
|
|
|
target_include_directories(FAT16 PUBLIC include)
|
|
|
|
if (BUILD_EXAMPLES)
|
|
add_executable(FAT16_EXTRACT
|
|
examples/extract.cpp)
|
|
|
|
target_link_libraries(FAT16_EXTRACT PRIVATE FAT16)
|
|
endif()
|