Properly defining build-time defines in config.h
parent
05a6ee6473
commit
ad8bb32561
|
@ -95,9 +95,17 @@ configure_file(
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/revision.h
|
${CMAKE_CURRENT_BINARY_DIR}/revision.h
|
||||||
)
|
)
|
||||||
|
|
||||||
|
SET( HEADER_PATH include/assimp )
|
||||||
|
|
||||||
|
configure_file(
|
||||||
|
${HEADER_PATH}/config.h.in
|
||||||
|
${ASSIMP_INCLUDE_INSTALL_DIR}/assimp/config.h
|
||||||
|
)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
./
|
./
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/include
|
||||||
)
|
)
|
||||||
|
|
||||||
OPTION(ASSIMP_OPT_BUILD_PACKAGES "Set to ON to generate CPack configuration files and packaging targets" OFF)
|
OPTION(ASSIMP_OPT_BUILD_PACKAGES "Set to ON to generate CPack configuration files and packaging targets" OFF)
|
||||||
|
|
|
@ -58,7 +58,6 @@ SET( PUBLIC_HEADERS
|
||||||
${HEADER_PATH}/camera.h
|
${HEADER_PATH}/camera.h
|
||||||
${HEADER_PATH}/color4.h
|
${HEADER_PATH}/color4.h
|
||||||
${HEADER_PATH}/color4.inl
|
${HEADER_PATH}/color4.inl
|
||||||
${HEADER_PATH}/config.h
|
|
||||||
${HEADER_PATH}/defs.h
|
${HEADER_PATH}/defs.h
|
||||||
${HEADER_PATH}/cfileio.h
|
${HEADER_PATH}/cfileio.h
|
||||||
${HEADER_PATH}/light.h
|
${HEADER_PATH}/light.h
|
||||||
|
|
|
@ -51,8 +51,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#endif // __cplusplus
|
#endif // __cplusplus
|
||||||
|
|
||||||
// Public ASSIMP data structures
|
// Public ASSIMP data structures
|
||||||
#include "types.h"
|
#include <assimp/types.h>
|
||||||
#include "config.h"
|
#include <assimp/config.h>
|
||||||
|
|
||||||
namespace Assimp {
|
namespace Assimp {
|
||||||
// =======================================================================
|
// =======================================================================
|
||||||
|
|
|
@ -905,4 +905,14 @@ enum aiComponent
|
||||||
|
|
||||||
#define AI_CONFIG_EXPORT_XFILE_64BIT "EXPORT_XFILE_64BIT"
|
#define AI_CONFIG_EXPORT_XFILE_64BIT "EXPORT_XFILE_64BIT"
|
||||||
|
|
||||||
|
|
||||||
|
// ---------- All the Build/Compile-time defines ------------
|
||||||
|
|
||||||
|
/** @brief Specifies if double precision is supported inside assimp
|
||||||
|
*
|
||||||
|
* Property type: Bool. Default value: undefined.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#cmakedefine AI_DOUBLE_PRECISION 1
|
||||||
|
|
||||||
#endif // !! AI_CONFIG_H_INC
|
#endif // !! AI_CONFIG_H_INC
|
Loading…
Reference in New Issue