CMakeLists.txt (e25b118a40ed6b5c2ea76bae29e388cfbc2f6e92) CMakeLists.txt (e6fdb625e048f04413a702691b57edd23a07e6ee)
1#
2# Copyright 2013 Dominic Spill
3#
4# This file is part of Libbtbb.
5#
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2, or (at your option)

--- 12 unchanged lines hidden (view full) ---

21
22# Based heavily upon the hackrf cmake setup.
23
24project(libbtbb C)
25set(PACKAGE libbtbb)
26
27add_subdirectory(src)
28
1#
2# Copyright 2013 Dominic Spill
3#
4# This file is part of Libbtbb.
5#
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2, or (at your option)

--- 12 unchanged lines hidden (view full) ---

21
22# Based heavily upon the hackrf cmake setup.
23
24project(libbtbb C)
25set(PACKAGE libbtbb)
26
27add_subdirectory(src)
28
29# Create uninstall target
30if(NOT libbtbb_all_SOURCE_DIR)
31configure_file(
32 ${PROJECT_SOURCE_DIR}/../cmake/cmake_uninstall.cmake.in
33 ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake
29CONFIGURE_FILE(
30 ${CMAKE_CURRENT_SOURCE_DIR}/libbtbb.pc.in
31 ${CMAKE_CURRENT_BINARY_DIR}/libbtbb.pc
34@ONLY)
35
32@ONLY)
33
36add_custom_target(uninstall
37 ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake
34INSTALL(
35 FILES ${CMAKE_CURRENT_BINARY_DIR}/libbtbb.pc
36 DESTINATION lib/pkgconfig
38)
37)
39endif()