39 lines
1.2 KiB
CMake
39 lines
1.2 KiB
CMake
# Feynman -- Wayland compositor for GNU Emacs
|
|
#
|
|
# Copyright (c) 2022 Sameer Rahmani <lxsameer@gnu.org>
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, version 2.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
add_library(feynman SHARED
|
|
feynman.c
|
|
)
|
|
|
|
set_target_properties(feynman PROPERTIES
|
|
VERSION ${PROJECT_VERSION}
|
|
SOVERSION ${PROJECT_VERSION_MAJOR}
|
|
# Warn on unused libs
|
|
LINK_WHAT_YOU_USE TRUE
|
|
C_INCLUDE_WHAT_YOU_USE "${iwyu_path}"
|
|
|
|
# LTO support
|
|
INTERPROCEDURAL_OPTIMIZATION TRUE)
|
|
|
|
if(FEYNMAN_ENABLE_TIDY)
|
|
set_target_properties(feynman PROPERTIES CXX_CLANG_TIDY ${CLANG_TIDY_PATH})
|
|
endif()
|
|
|
|
# Generate the export.h
|
|
include(GenerateExportHeader)
|
|
|
|
generate_export_header(feynman EXPORT_FILE_NAME ${PROJECT_BINARY_DIR}/src/export.h)
|