added includes path for sparrowrenderer and sparrowinput
This commit is contained in:
parent
3b4d080850
commit
9164ae8832
@ -90,28 +90,33 @@ if(USE_SFML)
|
||||
PATHS
|
||||
${LIB_PATHS}
|
||||
)
|
||||
|
||||
find_library(SFML_LIBRARY_AUDIO
|
||||
NAMES
|
||||
sfml-audio
|
||||
PATHS
|
||||
${LIB_PATHS}
|
||||
)
|
||||
|
||||
find_library(SFML_LIBRARY_GRAPHICS
|
||||
NAMES
|
||||
sfml-graphics
|
||||
PATHS
|
||||
${LIB_PATHS}
|
||||
)
|
||||
LIST(APPEND LIB_DEPENDENCIES_LIST ${SFML_LIBRARY_WINDOW} ${SFML_LIBRARY_SYSTEM} ${SFML_LIBRARY_AUDIO} ${SFML_LIBRARY_GRAPHICS})
|
||||
|
||||
add_definitions(-DSFML_STATIC)
|
||||
LIST(APPEND LIB_DEPENDENCIES_LIST ${SFML_LIBRARY_AUDIO} ${SFML_LIBRARY_GRAPHICS} ${SFML_LIBRARY_WINDOW} ${SFML_LIBRARY_SYSTEM})
|
||||
endif()
|
||||
|
||||
if(USE_RENDERER)
|
||||
find_library(SPARROW_RENDERER_LIBRARY
|
||||
NAMES
|
||||
sparrowrenderer
|
||||
SparrowRenderer
|
||||
PATHS
|
||||
${LIB_PATHS}
|
||||
)
|
||||
LIST(APPEND INCLUDE_PATHS "\n" ${PROJECT_SOURCE_DIR}/../sparrowrenderer/src)
|
||||
LIST(APPEND LIB_DEPENDENCIES_LIST ${SPARROW_RENDERER_LIBRARY})
|
||||
endif()
|
||||
|
||||
@ -122,6 +127,7 @@ if(USE_INPUT)
|
||||
PATHS
|
||||
${LIB_PATHS}
|
||||
)
|
||||
LIST(APPEND INCLUDE_PATHS "\n" ${PROJECT_SOURCE_DIR}/../sparrowinput/src)
|
||||
LIST(APPEND LIB_DEPENDENCIES_LIST ${SPARROW_INPUT_LIBRARY})
|
||||
endif()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user