fixed: define build_type before package configure, disable cuda by default
[opensg.git] / CMake / osg2-config.part1.in
blob0cb445bcad4eb505b576e4905258bc9b3a4da0fe
1 #!/usr/bin/env python
3 ######################## START osg2-config PART I ########################
5 # Commandline tool for querying information about OpenSG libraries and required
6 # flags to compile.
8 # Much of this file is autogenerated at build time, so make sure to modify
9 # the .in version of this file in the build if you want to make changes
11 # The main components of this file are:
12 # - A set of classes at the end of the file that are automatically included
13 # from the OpenSG build system. These are used to store and analyze
14 # the library information. Most of the logic used in this tool is in these classes.
15 # - A string rep list of dictionaries that are automatically created by the build
16 # and represent the state of the library objects from the build. This list
17 # is used to construct a local representation of the library information for OpenSG.
18 # - The option parser. This section of the code is responsible for reading options and
19 # calling the appropriate methods of the library info classes.
22 import os, os.path, sys
23 pj = os.path.join
24 from optparse import OptionParser
26 inst_prefix = "${CMAKE_INSTALL_PREFIX}"
27 inst_lib_dir = pj("${CMAKE_INSTALL_PREFIX}", "lib${OSG_LIBDIR_SUFFIX}")
28 inst_inc_dir = pj("${CMAKE_INSTALL_PREFIX}", "include")
30 lib_dir = inst_lib_dir
31 inc_dir = inst_inc_dir
33 inst_platform_32 = ${OSG_PLATFORM_32}
34 inst_platform_64 = ${OSG_PLATFORM_64}
36 inst_cxx_flags = "${CMAKE_CXX_FLAGS}"
37 inst_build_type = "${CMAKE_BUILD_TYPE}"
39 parser = None
40 options = None
41 pos_args = None
43 lib_map = {
45 ######################## END osg2-config PART I ########################