project(SimTK_python) cmake_minimum_required(VERSION 2.6 FATAL_ERROR) # PY_STAGING_DIR is where the python package area is created # as opposed to PY_TESTINSTALL_DIR which a local final binary install # for local testing. set(PY_STAGING_DIR "${CMAKE_BINARY_DIR}/package" CACHE PATH "Where temporary python package directory will be created") mark_as_advanced(PY_STAGING_DIR) set(SimTK_PYTHON_ENABLE_TESTING ON CACHE BOOL "Whether to create tests") set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules") set(SimTK_PYTHON_RERUN_SWIG ON CACHE BOOL "Whether to recreate SimTK python source code") if(SimTK_PYTHON_RERUN_SWIG) add_subdirectory(swig) endif(SimTK_PYTHON_RERUN_SWIG) if(SimTK_PYTHON_ENABLE_TESTING) enable_testing() add_subdirectory(test) endif()