Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 75 lines (65 sloc) 1.848 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
set(name OpenCOLLADABaseUtils)
project(${name})

set(libBaseUtils_include_dirs
${CMAKE_CURRENT_SOURCE_DIR}/include
${CMAKE_CURRENT_SOURCE_DIR}/include/Math
)

set(libBaseUtils_include_dirs ${libBaseUtils_include_dirs} PARENT_SCOPE) # adding include dirs to a parent scope

set(INST_SRC
include/COLLADABUIDList.h
include/COLLADABUStableHeaders.h
include/COLLADABUNativeString.h
include/COLLADABUException.h
include/COLLADABU.h
include/COLLADABUhash_map.h
include/COLLADABUStringUtils.h
include/COLLADABUPrerequisites.h
include/COLLADABUPcreCompiledPattern.h
include/COLLADABUUtils.h
include/COLLADABUPlatform.h
include/COLLADABUURI.h
include/COLLADABUHashFunctions.h
)
set(INST_MATH_SRC
include/Math/COLLADABUMathUtils.h
include/Math/COLLADABUMathVector3.h
include/Math/COLLADABUMathMatrix3.h
include/Math/COLLADABUMathMatrix4.h
include/Math/COLLADABUMathQuaternion.h
include/Math/COLLADABUMathPrerequisites.h
)

set(SRC
src/COLLADABUUtils.cpp
src/COLLADABUURI.cpp
src/COLLADABUPrecompiledHeaders.cpp
src/COLLADABUPcreCompiledPattern.cpp
src/COLLADABUIDList.cpp
src/COLLADABUStringUtils.cpp
src/COLLADABUHashFunctions.cpp
src/COLLADABUNativeString.cpp

src/Math/COLLADABUMathMatrix3.cpp
src/Math/COLLADABUMathVector3.cpp
src/Math/COLLADABUMathUtils.cpp
src/Math/COLLADABUMathQuaternion.cpp
src/Math/COLLADABUMathMatrix4.cpp

    ${INST_SRC}
    ${INST_MATH_SRC}
)

set(TARGET_LIBS
UTF
${PCRE_LIBRARIES}
)

include_directories(
${libBaseUtils_include_dirs}
${libUTF_include_dirs}
${PCRE_INCLUDE_DIR}
)

opencollada_add_lib(${name} "${SRC}" "${TARGET_LIBS}")

install(
FILES ${INST_SRC}
DESTINATION ${OPENCOLLADA_INST_INCLUDE}/COLLADABaseUtils
)
install(
FILES ${INST_MATH_SRC}
DESTINATION ${OPENCOLLADA_INST_INCLUDE}/COLLADABaseUtils/Math
)
Something went wrong with that request. Please try again.