mirror of https://github.com/axmolengine/axmol.git
Linux: make glfw3 visable to subprojects
This commit is contained in:
parent
07c31bb4e1
commit
479cd16886
|
@ -164,6 +164,14 @@ include_directories(
|
|||
|
||||
)
|
||||
|
||||
if(LINUX)
|
||||
|
||||
find_package(GLFW3 REQUIRED)
|
||||
message( STATUS "GLFW3 dirs: ${GLFW3_INCLUDE_DIRS}")
|
||||
include_directories(${GLFW3_INCLUDE_DIRS})
|
||||
|
||||
endif(LINUX)
|
||||
|
||||
|
||||
if(NOT MINGW)
|
||||
|
||||
|
|
|
@ -95,16 +95,6 @@ if(MINGW)
|
|||
|
||||
else()
|
||||
|
||||
if(LINUX)
|
||||
|
||||
find_package(GLFW3 REQUIRED)
|
||||
message( STATUS "GLFW3 dirs: ${GLFW3_INCLUDE_DIRS}")
|
||||
include_directories(${GLFW3_INCLUDE_DIRS})
|
||||
|
||||
endif(LINUX)
|
||||
|
||||
|
||||
|
||||
#todo: provide prebuild versions of minizip for android ios mac and msvc
|
||||
#done: prebuilt version for mingw-w64 (linux distros should have them also)
|
||||
# check for opensuse the buildbot system arch and ubuntu
|
||||
|
@ -119,6 +109,7 @@ endif()
|
|||
../external/xxhash
|
||||
../external/xxtea)
|
||||
|
||||
|
||||
add_library(cocos2d ${BUILD_TYPE} ${COCOS_SRC})
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue