added SparrowSerializer to cmake template

This commit is contained in:
Anselme 2017-01-19 13:46:10 +01:00
parent b824030223
commit 6468e27e24

View File

@ -1,5 +1,5 @@
# Variable that you need to define to use this template
# USE_SFML, USE_RENDERER, USE_INPUT, USE_BULLET, USE_OPENGL, USE_QT5
# Variable that you can define to add automatic dependencies
# USE_SFML, USE_RENDERER, USE_INPUT, USE_SERIALIZER, USE_LUA, USE_SOL2, USE_BULLET, USE_OPENGL, USE_QT5
#
# Container for list of file to be compiled :
# LIB_SRC_LIST, LIB_HEAD_LIST, EXEC_SRC_LIST, EXEC_HEAD_LIST
@ -120,6 +120,17 @@ if(USE_LUA)
endif()
if(USE_SERIALIZER)
find_library(SPARROW_SERIALIZER_LIBRARY
NAMES
SparrowSerializer
PATHS
${LIB_PATHS}
)
LIST(APPEND INCLUDE_PATHS ${PROJECT_SOURCE_DIR}/../SparrowSerializer/src)
LIST(APPEND LIB_DEPENDENCIES_LIST ${SPARROW_SERIALIZER_LIBRARY})
endif()
if(USE_ENGINE)
find_library(SPARROW_ENGINE_LIBRARY