/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2015-09-10 03:08:04 UTC
  • mfrom: (277.2.17 test_xml)
  • Revision ID: csa@suren.me-20150910030804-djti3wcmk4yubhp7
Initial integration of XML support

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
project(pcitool)
2
2
 
3
 
set(PCILIB_VERSION "0.2.1")
 
3
set(PCILIB_VERSION "0.2.2")
4
4
set(PCILIB_ABI_VERSION "2")
5
5
 
6
6
cmake_minimum_required(VERSION 2.6)
36
36
 
37
37
set(EXTRA_SYSTEM_LIBS -lrt)
38
38
 
 
39
check_include_files(stdatomic.h HAVE_STDATOMIC_H)
 
40
 
 
41
pkg_check_modules(LIBXML2 libxml-2.0 REQUIRED)
 
42
 
39
43
#Check in sibling directory
40
44
if (NOT DISABLE_PCITOOL)
41
45
    pkg_check_modules(FASTWRITER fastwriter REQUIRED)
42
46
endif (NOT DISABLE_PCITOOL)
43
47
 
44
 
check_include_files(stdatomic.h HAVE_STDATOMIC_H)
45
 
 
46
48
add_definitions("-fPIC --std=c99 -Wall -O2 -gdwarf-2 -g3 -fno-omit-frame-pointer")
47
49
#add_definitions("-fPIC --std=c99 -Wall -O2")
48
50
 
54
56
add_subdirectory(pcilib)
55
57
add_subdirectory(pcitool)
56
58
add_subdirectory(apps)
 
59
add_subdirectory(xml)
57
60
 
58
61
set_target_properties(pcilib PROPERTIES
59
62
    VERSION ${PCILIB_VERSION}