CMakeLists.txt (39524c59a59cf0bdb8a3bbfeb9fe5ea33f48e5d0) | CMakeLists.txt (088a90e8efc1c7809cfc209271d8a9221a2bc7a3) |
---|---|
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) --- 10 unchanged lines hidden (view full) --- 19# Boston, MA 02110-1301, USA. 20# 21 22include(GNUInstallDirs) 23 24# Based heavily upon the hackrf cmake setup. 25 26project(libbtbb C) | 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) --- 10 unchanged lines hidden (view full) --- 19# Boston, MA 02110-1301, USA. 20# 21 22include(GNUInstallDirs) 23 24# Based heavily upon the hackrf cmake setup. 25 26project(libbtbb C) |
27set(MAJOR_VERSION 0) 28set(MINOR_VERSION 5) |
|
27set(PACKAGE libbtbb) | 29set(PACKAGE libbtbb) |
30set(VERSION ${MAJOR_VERSION}.${MINOR_VERSION}) 31add_definitions( -DVERSION="${VERSION}" ) |
|
28 | 32 |
33if(NOT MSVC) 34 add_definitions(-Wall) 35 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu90") 36endif() 37 |
|
29add_subdirectory(src) 30 31CONFIGURE_FILE( 32 ${CMAKE_CURRENT_SOURCE_DIR}/libbtbb.pc.in 33 ${CMAKE_CURRENT_BINARY_DIR}/libbtbb.pc 34@ONLY) 35 36INSTALL( 37 FILES ${CMAKE_CURRENT_BINARY_DIR}/libbtbb.pc 38 DESTINATION lib${LIB_SUFFIX}/pkgconfig 39) | 38add_subdirectory(src) 39 40CONFIGURE_FILE( 41 ${CMAKE_CURRENT_SOURCE_DIR}/libbtbb.pc.in 42 ${CMAKE_CURRENT_BINARY_DIR}/libbtbb.pc 43@ONLY) 44 45INSTALL( 46 FILES ${CMAKE_CURRENT_BINARY_DIR}/libbtbb.pc 47 DESTINATION lib${LIB_SUFFIX}/pkgconfig 48) |