2017-01-23 15:09:07 +11:00
|
|
|
cmake_minimum_required(VERSION 3.7.0)
|
2018-06-20 12:50:27 +10:00
|
|
|
project(util-cruft LANGUAGES CXX C)
|
2018-06-20 12:23:15 +10:00
|
|
|
|
2019-06-18 11:26:18 +10:00
|
|
|
include (nc)
|
2017-01-17 19:20:30 +11:00
|
|
|
|
|
|
|
include(CheckFunctionExists)
|
|
|
|
include(CheckCXXCompilerFlag)
|
2024-05-29 16:29:08 +10:00
|
|
|
include(CMakePackageConfigHelpers)
|
|
|
|
include(GNUInstallDirs)
|
2017-01-17 19:20:30 +11:00
|
|
|
|
|
|
|
include (search_libs)
|
|
|
|
|
2024-05-29 16:29:08 +10:00
|
|
|
add_subdirectory ("cruft/util")
|
|
|
|
add_subdirectory ("test")
|
|
|
|
add_subdirectory ("tools")
|
2017-01-17 19:20:30 +11:00
|
|
|
|
2017-01-19 14:23:13 +11:00
|
|
|
|
|
|
|
###############################################################################
|
2019-06-18 11:25:51 +10:00
|
|
|
configure_file(libcruft.pc.in libcruft.pc @ONLY)
|
|
|
|
install (
|
2024-05-29 16:29:08 +10:00
|
|
|
FILES
|
2019-06-18 11:25:51 +10:00
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/libcruft.pc"
|
2024-05-29 16:29:08 +10:00
|
|
|
DESTINATION
|
2019-06-18 15:10:05 +10:00
|
|
|
"share/pkgconfig"
|
2024-05-29 16:29:08 +10:00
|
|
|
COMPONENT
|
2019-06-21 15:55:39 +10:00
|
|
|
development
|
2019-06-18 11:25:51 +10:00
|
|
|
)
|
|
|
|
|
|
|
|
|
2017-01-19 14:23:13 +11:00
|
|
|
configure_file(Doxyfile.in Doxyfile)
|