Build only one of static or shared libraries
As discussed on the forums, to simplify the CMake code and avoid having to manually specify dependencies this removes the hack to allow both static and shared libraries to be built at the same time. It introduces the new variable LIBRARY_TYPE which can be either STATIC or DYNAMIC. See: http://www.volumesoffun.com/phpBB3/viewtopic.php?p=3203#p3203
This commit is contained in:
@ -14,12 +14,6 @@ MACRO(CREATE_TEST headerfile sourcefile executablename)
|
||||
ELSE(WIN32)
|
||||
SET(LATEST_TEST ${CMAKE_CURRENT_BINARY_DIR}/${executablename})
|
||||
ENDIF(WIN32)
|
||||
if(ENABLE_STATIC_LIBRARIES)
|
||||
ADD_DEPENDENCIES(${executablename} PolyVoxCoreStatic PolyVoxUtilStatic)
|
||||
endif()
|
||||
if(ENABLE_DYNAMIC_LIBRARIES)
|
||||
ADD_DEPENDENCIES(${executablename} PolyVoxCoreDynamic PolyVoxUtilDynamic)
|
||||
endif()
|
||||
ENDMACRO(CREATE_TEST)
|
||||
|
||||
IF(NOT QT_QTTEST_FOUND)
|
||||
|
Reference in New Issue
Block a user