unittests: add platform libs for linux build.

pull/1003/head^2
Kim Kulling 2016-09-11 17:28:20 +02:00
parent 68e6f2a32c
commit 44a7d600e6
1 changed files with 7 additions and 2 deletions

View File

@ -106,7 +106,12 @@ add_definitions(-DASSIMP_TEST_MODELS_DIR="${CMAKE_CURRENT_LIST_DIR}/models")
SET_PROPERTY( TARGET assimp PROPERTY DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX} ) SET_PROPERTY( TARGET assimp PROPERTY DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX} )
#add_dependencies( unit ) IF( WIN32 )
target_link_libraries( unit assimp) SET( platform_libs )
ELSE( WIN32 )
SET( platform_libs pthread )
ENDIF( WIN32 )
target_link_libraries( unit assimp ${platform_libs} )
add_subdirectory(headercheck) add_subdirectory(headercheck)