Changeset 95

Show
Ignore:
Timestamp:
12/19/06 17:05:10 (2 years ago)
Author:
diane
Message:

add CMakeLists.txt files for building paircomp with cmake

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/diane/paircomp/python/setup.py

    r11 r95  
    11from distutils.core import setup, Extension 
     2import os 
    23 
     4# For when we're being run out-of-source  
     5# we don't know where libpaircomp is, so we can't provide 
     6# the proper dependency information. 
     7dependencies = ['../lib/libpaircomplib.a'] 
     8for i in xrange(len(dependencies)): 
     9  if not os.path.exists(dependencies[i]): 
     10    del dependencies[i] 
     11     
    312# the c++ parser extension module (needs to be linked in with libpaircomp.a...) 
    413parser_mod = Extension("paircomp._paircomp_parser", 
     
    615                       include_dirs=['../lib',], 
    716                       library_dirs=['../lib',], 
    8                        libraries=['paircomp', 'stdc++'], 
    9                        depends=['../lib/libpaircomp.a',]
     17                       libraries=['paircomplib', 'stdc++'], 
     18                       depends=dependencies
    1019 
    1120# the c++ algorithm extension module (needs to be linked in with libpaircomp.a...) 
     
    1423                           include_dirs=['../lib',], 
    1524                           library_dirs=['../lib',], 
    16                            libraries=['paircomp', 'stdc++'], 
    17                            depends=['../lib/libpaircomp.a',]
     25                           libraries=['paircomplib', 'stdc++'], 
     26                           depends=dependencies
    1827 
    1928# the c++ renderer extension module