CMakeLists.txt
changeset 12 14cd74b518ea
parent 11 dc7bcc0fa5e1
child 14 61d94594e8fb
equal deleted inserted replaced
11:dc7bcc0fa5e1 12:14cd74b518ea
    14 # You should have received a copy of the GNU General Public License
    14 # You should have received a copy of the GNU General Public License
    15 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
    15 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
    16 
    16 
    17 cmake_minimum_required(VERSION 2.6) 
    17 cmake_minimum_required(VERSION 2.6) 
    18 project(env C) 
    18 project(env C) 
       
    19 set(PROJECT_VERSION "0.0.1")
    19 
    20 
    20 ## User settable options
    21 ## User settable options
    21  
    22  
    22 ## Check for build dependencies
    23 ## Check for build dependencies
    23 find_package(PkgConfig REQUIRED) 
    24 find_package(PkgConfig REQUIRED) 
    28 
    29 
    29 ## Target definitions
    30 ## Target definitions
    30 add_library(env MODULE env.c) 
    31 add_library(env MODULE env.c) 
    31 
    32 
    32 ## Compiler setup
    33 ## Compiler setup
       
    34 configure_file(config.h.in config.h)
    33 include_directories(SYSTEM ${GLIB_INCLUDE_DIRS} 
    35 include_directories(SYSTEM ${GLIB_INCLUDE_DIRS} 
    34                     ${MCABBER_INCLUDE_DIRS})
    36                     ${MCABBER_INCLUDE_DIRS})
    35 target_link_libraries(env ${GLIB_LIBRARIES} 
    37 target_link_libraries(env ${GLIB_LIBRARIES} 
    36 					  ${MCABBER_LIBRARIES})
    38 					  ${MCABBER_LIBRARIES})
    37 include_directories(${env_SOURCE_DIR} 
    39 include_directories(${env_SOURCE_DIR} 
    38                     ${env_BINARY_DIR})
    40                     ${env_BINARY_DIR})
    39 
    41 
    40 ## Packaging information
    42 ## Packaging information
    41 set(CPACK_PACKAGE_NAME libmcabber-env)
    43 set(CPACK_PACKAGE_NAME libmcabber-env)
    42 set(CPACK_PACKAGE_VERSION "0.0.1")
    44 set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
    43 set(CPACK_PACKAGE_VENDOR "IsBear")
    45 set(CPACK_PACKAGE_VENDOR "IsBear")
    44 set(CPACK_PACKAGE_CONTACT "Myhailo Danylenko <isbear@ukrpost.net>")
    46 set(CPACK_PACKAGE_CONTACT "Myhailo Danylenko <isbear@ukrpost.net>")
    45 set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Debug module to access mcabber environment")
    47 set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Debug module to access mcabber environment")
    46 set(CPACK_RESOURCE_FILE_LICENSE ${env_SOURCE_DIR}/COPYING)
    48 set(CPACK_RESOURCE_FILE_LICENSE ${env_SOURCE_DIR}/COPYING)
    47 set(CPACK_SOURCE_GENERATOR TBZ2)
    49 set(CPACK_SOURCE_GENERATOR TBZ2)