Files
pmt-renovated/CMakeLists.txt
YZBruh 6294482b39 pmt: ready for release
- Fix memory leaks
 - Writed functions and apply
 - Test pmt and verify stability
2025-08-06 21:58:05 +03:00

43 lines
1.3 KiB
CMake
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# Copyright 2025 Yağız Zengin
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Project info
cmake_minimum_required(VERSION 3.10)
project(pmt VERSION 1.0.0)
# Set compiler flags
add_compile_options(-Wall -Werror -Wno-deprecated-declarations)
if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
add_compile_options(-gdwarf-5 -fsanitize=address -fstack-protector)
add_link_options(-fsanitize=address)
endif()
# Add pmt's CMake module(s)
include(cmake/generate_headers.cmake)
# Generate header(s)
get_property(FLAGS DIRECTORY PROPERTY COMPILE_OPTIONS)
generateBuildInfo("${FLAGS}")
# Add include directories
include_directories(include srclib/libhelper/include srclib/libpartition_map/include)
# Add libraries
add_subdirectory(srclib)
# Include pmt
add_subdirectory(src)