~cern-kicad/kicad/kicad-pns-tom

« back to all changes in this revision

Viewing changes to pcbnew/CMakeLists.txt

  • Committer: Maciej Suminski
  • Date: 2013-08-02 13:57:24 UTC
  • mfrom: (4024.1.238 kicad)
  • mto: This revision was merged to the branch mainline in revision 4221.
  • Revision ID: maciej.suminski@cern.ch-20130802135724-gix6orezshkukodv
Upstream merge.

Show diffs side-by-side

added added

removed removed

Lines of Context:
267
267
 
268
268
    get_directory_property( DirDefs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMPILE_DEFINITIONS )
269
269
    foreach( d ${DirDefs} )
270
 
        set(SWIG_FLAGS ${SWIG_FLAGS} -D${d} )
 
270
        set( SWIG_FLAGS ${SWIG_FLAGS} -D${d} )
271
271
    endforeach()
272
272
 
273
 
    # check if we have IO_MGR and KICAD_PLUGIN available
274
 
    if ( USE_NEW_PCBNEW_LOAD OR USE_NEW_PCBNEW_SAVE )
275
 
        set(SWIG_FLAGS ${SWIG_FLAGS} -DBUILD_WITH_PLUGIN)
276
 
    endif(USE_NEW_PCBNEW_LOAD OR USE_NEW_PCBNEW_SAVE)
277
 
 
278
 
    if ( USE_PCBNEW_NANOMETRES )
279
 
        set(SWIG_FLAGS ${SWIG_FLAGS} -DUSE_PCBNEW_NANOMETRES)
 
273
    if( USE_PCBNEW_NANOMETRES )
 
274
        set( SWIG_FLAGS ${SWIG_FLAGS} -DUSE_PCBNEW_NANOMETRES )
280
275
    endif( USE_PCBNEW_NANOMETRES )
281
276
 
282
277
endif(KICAD_SCRIPTING OR KICAD_SCRIPTING_MODULES)
283
278
 
 
279
 
284
280
if (KICAD_SCRIPTING)
285
281
 
286
 
    set(SWIG_OPTS -python -c++ -outdir ${CMAKE_CURRENT_BINARY_DIR} ${SWIG_FLAGS} )
 
282
    set( SWIG_OPTS -python -c++ -outdir ${CMAKE_CURRENT_BINARY_DIR} ${SWIG_FLAGS} )
287
283
 
288
284
    add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/pcbnew_wrap.cxx
289
285
        DEPENDS pcbcommon
316
312
 
317
313
if (KICAD_SCRIPTING_MODULES)
318
314
 
 
315
    #message( "building pcbnew scripting" )
 
316
 
319
317
    set(CMAKE_SWIG_FLAGS ${SWIG_FLAGS})
320
318
    set_source_files_properties(scripting/pcbnew.i PROPERTIES CPLUSPLUS ON)
321
319
    swig_add_module(pcbnew python scripting/pcbnew.i ${PCBNEW_SCRIPTING_PYTHON_HELPERS} ${PCBNEW_SRCS} ${PCBNEW_COMMON_SRCS})