Simbody
3.5
|
Functions | |
cmake_minimum_required (VERSION 2.8.6) if(COMMAND cmake_policy) cmake_policy(SET CMP0003 NEW) cmake_policy(SET CMP0005 NEW) endif(COMMAND cmake_policy) include(GNUInstallDirs) set(CMAKE_INSTALL_DOCDIR doc) set(CMAKE_INSTALL_DOCDIR $ | |
doc simbody | SET (SIMBODY_VERSION"${SIMBODY_MAJOR_VERSION}.${SIMBODY_MINOR_VERSION}${PATCH_VERSION_STRING}"CACHE STRING"This is the version that will be built (can't be changed in GUI)."FORCE) SET(SIMBODY_SONAME_VERSION"$ |
appended to names of shared | libs (can't be changed in GUI)." FORCE) SET(BUILD_BINARY_DIR $ |
CACHE PATH The Simbody | build (not the install) puts all the libraries and executables together here(with/Release |
CACHE PATH The Simbody etc appended on some platforms | SET (BUILD_STATIC_LIBRARIES FALSE CACHE BOOL"Build '_static' versions of libraries in addition to dynamic libraries?") SET(BUILD_USING_NAMESPACE""CACHE STRING"All library names will be prefixed with 'xxx_' if this is set to xxx.") SET(BUILD_UNVERSIONED_LIBRARIES TRUE CACHE BOOL"Build library names |
CACHE PATH The Simbody etc appended on some platforms and assume dependency with no version numbers | SET (BUILD_VERSIONED_LIBRARIES FALSE CACHE BOOL"Build library names, and assume dependency names, with version numbers?") SET(SimTKSIMBODY_LIBRARY_NAME $ |
see BUILD_USING_NAMESPACE variable FORCE | SET (SimTKMATH_LIBRARY_NAME ${NS}SimTKmath CACHE STRING"Base name of the library being built; can't be changed here; see BUILD_USING_NAMESPACE variable."FORCE) SET(SimTKCOMMON_LIBRARY_NAME $ |
see BUILD_USING_NAMESPACE variable FORCE | SET (BUILD_TESTING ON CACHE BOOL"Control building of Simbody test programs. To actually build tests, one or both of BUILD_TESTS_AND_EXAMPLES_STATIC and BUILD_TESTS_AND_EXAMPLES_SHARED must be ON.") SET(BUILD_EXAMPLES ON CACHE BOOL"Control building of Simbody example programs. To actually build examples |
see BUILD_USING_NAMESPACE variable FORCE one or both of BUILD_TESTS_AND_EXAMPLES_STATIC and BUILD_TESTS_AND_EXAMPLES_SHARED must be ON | SET (BUILD_VISUALIZER ON CACHE BOOL"Control building of the visualizer component") SET(BUILD_TESTS_AND_EXAMPLES_STATIC ON CACHE BOOL"If BUILDING_STATIC_LIBRARIES and BUILD_TESTING or BUILD_EXAMPLES |
see BUILD_USING_NAMESPACE variable FORCE one or both of BUILD_TESTS_AND_EXAMPLES_STATIC and BUILD_TESTS_AND_EXAMPLES_SHARED must be ON build statically linked test and example programs too On statically linked tests may be easier to debug than DLL linked tests Statically linked examples are never installed | SET (BUILD_TESTS_AND_EXAMPLES_SHARED ON CACHE BOOL"If BUILD_TESTING or BUILD_EXAMPLES, build dynamically-linked ones?") IF(BUILD_TESTING AND NOT(BUILD_TESTS_AND_EXAMPLES_STATIC OR BUILD_TESTS_AND_EXAMPLES_SHARED)) MESSAGE(SEND_ERROR"No tests would be built |
see BUILD_USING_NAMESPACE variable FORCE one or both of BUILD_TESTS_AND_EXAMPLES_STATIC and BUILD_TESTS_AND_EXAMPLES_SHARED must be ON build statically linked test and example programs too On statically linked tests may be easier to debug than DLL linked tests Statically linked examples are never installed despite BUILD_EXAMPLES being because BUILD_TESTS_AND_EXAMPLES_STATIC and BUILD_TESTS_AND_EXAMPLES_SHARED are both off | IF (BUILD_EXAMPLES AND NOT(BUILD_TESTS_AND_EXAMPLES_STATIC ORBUILD_TESTS_AND_EXAMPLES_SHARED)) MESSAGE(SEND_ERROR"No examples would be built |
see BUILD_USING_NAMESPACE variable FORCE one or both of BUILD_TESTS_AND_EXAMPLES_STATIC and BUILD_TESTS_AND_EXAMPLES_SHARED must be ON build statically linked test and example programs too On statically linked tests may be easier to debug than DLL linked tests Statically linked examples are never installed despite BUILD_EXAMPLES being because BUILD_TESTS_AND_EXAMPLES_STATIC and BUILD_TESTS_AND_EXAMPLES_SHARED are both off despite BUILD_EXAMPLES being because BUILD_TESTS_AND_EXAMPLES_STATIC and BUILD_TESTS_AND_EXAMPLES_SHARED are both off | SET (BUILD_PLATFORM"${CMAKE_HOST_SYSTEM_NAME}:${PLATFORM_ABI}"CACHE STRING"This is the platform and ABI we're building for. Not changeable here; use a different CMake generator instead."FORCE) IF("$ |
STREQUAL usr local | RelWithDebInfo (recommended) |
STREQUAL usr local or Release build FORCE | if (CMAKE_CL_64) set(default_build_inst_set) else() set(default_build_inst_set) endif() SET(BUILD_INST_SET""CACHE STRING"CPU instruction level compiler is permitted to use (default |
else () set(GCC_INST_SET) endif() execute_process(COMMAND $ | |
dumpversion OUTPUT_VARIABLE GCC_VERSION | if (GCC_VERSION VERSION_EQUAL 4.4) SET(GCC_OPT_DISABLE"-fno-strict-aliasing -fno-tree-vrp -fno-guess-branch-probability") endif() SET(BUILD_CXX_FLAGS_RELEASE"-DNDEBUG -O2 $ |
put library basenames separated by semicolons See LAPACK_BEING_USED to see what s actually being used | if (WIN32) set(LAPACK_PLATFORM_DEFAULT liblapack |
Variables | |
CACHE PATH The Simbody etc appended on some platforms and assume dependency | names |
SimTKsimbody CACHE STRING Base name of the library being | built |
can t be changed | here |
see BUILD_USING_NAMESPACE variable FORCE one or both of BUILD_TESTS_AND_EXAMPLES_STATIC and BUILD_TESTS_AND_EXAMPLES_SHARED must be ON build statically linked test and example programs too On | Windows |
see BUILD_USING_NAMESPACE variable FORCE one or both of BUILD_TESTS_AND_EXAMPLES_STATIC and BUILD_TESTS_AND_EXAMPLES_SHARED must be ON build statically linked test and example programs too On statically linked tests may be easier to debug than DLL linked tests Statically linked examples are never installed despite BUILD_EXAMPLES being | on |
STREQUAL usr local | OR |
cmake_minimum_required | ( | VERSION 2.8. | 6 | ) |
doc simbody SET | ( | SIMBODY_VERSION"${SIMBODY_MAJOR_VERSION}.${SIMBODY_MINOR_VERSION}${PATCH_VERSION_STRING}"CACHE STRING"This is the version that will be built (can't be changed in GUI)." | FORCE | ) |
CACHE PATH The Simbody build | ( | not the | install | ) |
CACHE PATH The Simbody etc appended on some platforms SET | ( | BUILD_STATIC_LIBRARIES FALSE CACHE BOOL"Build '_static' versions of libraries in addition to dynamic libraries?" | ) |
CACHE PATH The Simbody etc appended on some platforms and assume dependency with no version numbers SET | ( | BUILD_VERSIONED_LIBRARIES FALSE CACHE BOOL"Build library | names, |
and assume dependency | names, | ||
with version numbers?" | |||
) |
see BUILD_USING_NAMESPACE variable FORCE SET | ( | SimTKMATH_LIBRARY_NAME ${NS}SimTKmath CACHE STRING"Base name of the library being built; can't be changed here; see BUILD_USING_NAMESPACE variable." | FORCE | ) |
see BUILD_USING_NAMESPACE variable FORCE SET | ( | BUILD_TESTING ON CACHE BOOL"Control building of Simbody test programs. To actually build | tests, |
one or both of BUILD_TESTS_AND_EXAMPLES_STATIC and BUILD_TESTS_AND_EXAMPLES_SHARED must be ON." | |||
) |
see BUILD_USING_NAMESPACE variable FORCE one or both of BUILD_TESTS_AND_EXAMPLES_STATIC and BUILD_TESTS_AND_EXAMPLES_SHARED must be ON SET | ( | BUILD_VISUALIZER ON CACHE BOOL"Control building of the visualizer component" | ) |
see BUILD_USING_NAMESPACE variable FORCE one or both of BUILD_TESTS_AND_EXAMPLES_STATIC and BUILD_TESTS_AND_EXAMPLES_SHARED must be ON build statically linked test and example programs too On statically linked tests may be easier to debug than DLL linked tests Statically linked examples are never installed SET | ( | BUILD_TESTS_AND_EXAMPLES_SHARED ON CACHE BOOL"If BUILD_TESTING or | BUILD_EXAMPLES, |
build dynamically-linked ones?" | |||
) |
see BUILD_USING_NAMESPACE variable FORCE one or both of BUILD_TESTS_AND_EXAMPLES_STATIC and BUILD_TESTS_AND_EXAMPLES_SHARED must be ON build statically linked test and example programs too On statically linked tests may be easier to debug than DLL linked tests Statically linked examples are never installed despite BUILD_EXAMPLES being because BUILD_TESTS_AND_EXAMPLES_STATIC and BUILD_TESTS_AND_EXAMPLES_SHARED are both off IF | ( | BUILD_EXAMPLES AND | NOTBUILD_TESTS_AND_EXAMPLES_STATIC ORBUILD_TESTS_AND_EXAMPLES_SHARED | ) |
see BUILD_USING_NAMESPACE variable FORCE one or both of BUILD_TESTS_AND_EXAMPLES_STATIC and BUILD_TESTS_AND_EXAMPLES_SHARED must be ON build statically linked test and example programs too On statically linked tests may be easier to debug than DLL linked tests Statically linked examples are never installed despite BUILD_EXAMPLES being because BUILD_TESTS_AND_EXAMPLES_STATIC and BUILD_TESTS_AND_EXAMPLES_SHARED are both off despite BUILD_EXAMPLES being because BUILD_TESTS_AND_EXAMPLES_STATIC and BUILD_TESTS_AND_EXAMPLES_SHARED are both off SET | ( | BUILD_PLATFORM"${CMAKE_HOST_SYSTEM_NAME}:${PLATFORM_ABI}"CACHE STRING"This is the platform and ABI we're building for. Not changeable here; use a different CMake generator instead." | FORCE | ) |
STREQUAL usr local RelWithDebInfo | ( | recommended | ) |
libblas else | ( | ) |
dumpversion OUTPUT_VARIABLE GCC_VERSION if | ( | GCC_VERSION VERSION_EQUAL 4. | 4 | ) |
put library basenames separated by semicolons See LAPACK_BEING_USED to see what s actually being used if | ( | WIN32 | ) |
CACHE PATH The Simbody etc appended on some platforms and assume dependency names |
SimTKcommon CACHE STRING Base name of the library being built |
put library basenames here |
see BUILD_USING_NAMESPACE variable FORCE one or both of BUILD_TESTS_AND_EXAMPLES_STATIC and BUILD_TESTS_AND_EXAMPLES_SHARED must be ON build statically linked test and example programs too On Windows |
see BUILD_USING_NAMESPACE variable FORCE one or both of BUILD_TESTS_AND_EXAMPLES_STATIC and BUILD_TESTS_AND_EXAMPLES_SHARED must be ON build statically linked test and example programs too On statically linked tests may be easier to debug than DLL linked tests Statically linked examples are never installed despite BUILD_EXAMPLES being because BUILD_TESTS_AND_EXAMPLES_STATIC and BUILD_TESTS_AND_EXAMPLES_SHARED are both off despite BUILD_EXAMPLES being on |
STREQUAL usr local OR |