Update ADD_DEPENDENCIES calls

Update for the static and dynamic options and add
some more calls for PolyVoxUtil and the tests.
This commit is contained in:
Matt Williams
2011-04-24 14:50:13 +02:00
parent ac0fb2b310
commit fce8089264
3 changed files with 18 additions and 3 deletions

View File

@ -14,6 +14,12 @@ MACRO(CREATE_TEST headerfile sourcefile executablename)
ELSE(WIN32)
SET(LATEST_TEST ${CMAKE_CURRENT_BINARY_DIR}/${executablename})
ENDIF(WIN32)
if(BUILD_STATIC_LIBRARIES)
ADD_DEPENDENCIES(${executablename} PolyVoxCoreStatic PolyVoxUtilStatic)
endif()
if(BUILD_DYNAMIC_LIBRARIES)
ADD_DEPENDENCIES(${executablename} PolyVoxCoreDynamic PolyVoxUtilDynamic)
endif()
ENDMACRO(CREATE_TEST)
IF(NOT QT_QTTEST_FOUND)