2014-05-10 08:31:42 +00:00
|
|
|
cmake_minimum_required( VERSION 2.6 )
|
|
|
|
|
2014-09-07 23:52:03 +00:00
|
|
|
INCLUDE( AddGTest )
|
|
|
|
|
2010-03-03 21:48:23 +00:00
|
|
|
INCLUDE_DIRECTORIES(
|
2010-03-03 22:07:59 +00:00
|
|
|
${Assimp_SOURCE_DIR}/include
|
|
|
|
${Assimp_SOURCE_DIR}/code
|
2009-08-02 20:53:30 +00:00
|
|
|
)
|
|
|
|
|
2010-03-03 21:48:23 +00:00
|
|
|
# Add the temporary output directories to the library path to make sure the
|
|
|
|
# Assimp library can be found, even if it is not installed system-wide yet.
|
2010-03-03 22:07:59 +00:00
|
|
|
LINK_DIRECTORIES( ${Assimp_BINARY_DIR} ${AssetImporter_BINARY_DIR}/lib )
|
2009-08-02 20:53:30 +00:00
|
|
|
|
2014-09-07 23:52:03 +00:00
|
|
|
SOURCE_GROUP( unit FILES
|
2009-08-02 20:53:30 +00:00
|
|
|
unit/CCompilerTest.c
|
2010-06-02 20:07:29 +00:00
|
|
|
)
|
2014-07-22 15:32:09 +00:00
|
|
|
|
|
|
|
SET( TEST_SRCS
|
2014-12-03 20:23:27 +00:00
|
|
|
unit/AssimpAPITest.cpp
|
2014-12-01 19:34:15 +00:00
|
|
|
unit/utFastAtof.cpp
|
2014-12-02 07:51:20 +00:00
|
|
|
unit/utFindDegenerates.cpp
|
|
|
|
unit/utFindInvalidData.cpp
|
|
|
|
unit/utFixInfacingNormals.cpp
|
|
|
|
unit/utGenNormals.cpp
|
|
|
|
unit/utImporter.cpp
|
|
|
|
unit/utImproveCacheLocality.cpp
|
|
|
|
unit/utJoinVertices.cpp
|
|
|
|
unit/utLimitBoneWeights.cpp
|
|
|
|
unit/utMaterialSystem.cpp
|
|
|
|
unit/utPretransformVertices.cpp
|
|
|
|
unit/utRemoveComments.cpp
|
|
|
|
unit/utRemoveComponent.cpp
|
|
|
|
unit/utRemoveRedundantMaterials.cpp
|
|
|
|
unit/utScenePreprocessor.cpp
|
|
|
|
unit/utSharedPPData.cpp
|
|
|
|
unit/utSortByPType.cpp
|
|
|
|
unit/utSplitLargeMeshes.cpp
|
|
|
|
unit/utTargetAnimation.cpp
|
|
|
|
unit/utTextureTransform.cpp
|
|
|
|
unit/utTriangulate.cpp
|
|
|
|
unit/utVertexTriangleAdjacency.cpp
|
|
|
|
unit/utNoBoostTest.cpp
|
2009-08-02 20:53:30 +00:00
|
|
|
)
|
|
|
|
|
2014-09-07 23:52:03 +00:00
|
|
|
SOURCE_GROUP( tests FILES ${TEST_SRCS} )
|
2014-07-22 15:32:09 +00:00
|
|
|
|
2014-09-07 23:52:03 +00:00
|
|
|
add_executable( unit
|
2014-12-02 07:51:20 +00:00
|
|
|
unit/CCompilerTest.c
|
|
|
|
unit/Main.cpp
|
|
|
|
unit/UnitTestPCH.cpp
|
|
|
|
unit/UnitTestPCH.h
|
|
|
|
${TEST_SRCS}
|
2009-08-02 20:53:30 +00:00
|
|
|
)
|
|
|
|
|
2015-01-23 18:10:36 +00:00
|
|
|
SET_PROPERTY( TARGET assimp PROPERTY DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX} )
|
2009-08-02 20:53:30 +00:00
|
|
|
|
2014-09-07 23:52:03 +00:00
|
|
|
add_dependencies( unit gtest )
|
|
|
|
target_link_libraries( unit assimp
|
|
|
|
debug ${GTEST_DEBUG_LIBRARIES}
|
|
|
|
optimized ${GTEST_RELEASE_LIBRARIES}
|
|
|
|
)
|