From 44a7d600e678390d2fb7f18760a677abf12b7bce Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Sun, 11 Sep 2016 17:28:20 +0200 Subject: [PATCH] unittests: add platform libs for linux build. --- test/CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 0b4c809c7..10ff86460 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)