~adamwolf/kicad/python-directory

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Adam Wolf
  • Date: 2013-03-23 21:26:18 UTC
  • Revision ID: adamwolf@feelslikeburning.com-20130323212618-wd1fe2fa13nnf9px
Changed python_dest

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
    "set this option to ON to build the stable version of KICAD. mainly used to set version ID (default OFF)"
46
46
    )
47
47
 
48
 
option(KICAD_SCRIPTING
49
 
    "set this option ON to build the scripting support inside kicad binaries"
50
 
    )
51
48
 
52
49
option(KICAD_SCRIPTING_MODULES
53
50
    "set this option ON to build kicad modules that can be used from scripting languages"
233
230
    CACHE PATH "Location of KiCad demo files.")
234
231
set(KICAD_TEMPLATE ${KICAD_DATA}/template
235
232
    CACHE PATH "Location of KiCad template files.")
 
233
set(KICAD_SCRIPTING ${KICAD_DATA}/scripting
 
234
    CACHE PATH "Location of KiCad scripting files.")
236
235
 
237
236
mark_as_advanced(KICAD_BIN
238
237
    KICAD_PLUGINS
239
238
    KICAD_DATA
240
239
    KICAD_DOCS
241
240
    KICAD_DEMOS
242
 
    KICAD_TEMPLATE)
 
241
    KICAD_TEMPLATE
 
242
    KICAD_SCRIPTING)
243
243
 
244
244
include(Functions)
245
245
 
314
314
        endif()
315
315
    endif()
316
316
 
317
 
    set(PYTHON_DEST "${PYTHON_SITE_PACKAGE_PATH}" CACHE PATH "Python module install path.")
 
317
    # set(PYTHON_DEST "${PYTHON_SITE_PACKAGE_PATH}" CACHE PATH "Python module install path.")
 
318
    set(PYTHON_DEST "${KICAD_DATA}/python" CACHE PATH "Python module install path.")
318
319
    mark_as_advanced(PYTHON_DEST)
319
320
    message( STATUS "Python module install path: ${PYTHON_DEST}")
320
321
    find_package(PythonLibs)