From: Kim Kulling Date: Sun, 11 Sep 2016 15:28:20 +0000 (+0200) Subject: unittests: add platform libs for linux build. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=44a7d600e678390d2fb7f18760a677abf12b7bce;p=platform%2Fupstream%2Fassimp.git unittests: add platform libs for linux build. --- diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 0b4c809..10ff864 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -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} ) -#add_dependencies( unit ) -target_link_libraries( unit assimp) +IF( WIN32 ) + SET( platform_libs ) +ELSE( WIN32 ) + SET( platform_libs pthread ) +ENDIF( WIN32 ) + +target_link_libraries( unit assimp ${platform_libs} ) add_subdirectory(headercheck)