mirror of https://github.com/bjornbytes/lovr.git
Fix CMakeLists for emscripten;
This commit is contained in:
parent
8bf2048cf2
commit
54f9357b3e
|
@ -39,9 +39,17 @@ else()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# enet
|
# enet
|
||||||
add_subdirectory(deps/enet enet)
|
if(EMSCRIPTEN)
|
||||||
include_directories(deps/enet/include)
|
add_definitions(-D__APPLE__)
|
||||||
set(LOVR_ENET enet)
|
add_subdirectory(deps/enet enet)
|
||||||
|
set(ZLIB_INCLUDE_DIR "${EMSCRIPTEN_ROOT_PATH}/tests/enet")
|
||||||
|
set(LOVR_ENET enet)
|
||||||
|
remove_definitions(-D__APPLE__)
|
||||||
|
else()
|
||||||
|
add_subdirectory(deps/enet enet)
|
||||||
|
include_directories(deps/enet/include)
|
||||||
|
set(LOVR_ENET enet)
|
||||||
|
endif()
|
||||||
|
|
||||||
# FreeType
|
# FreeType
|
||||||
if (EMSCRIPTEN)
|
if (EMSCRIPTEN)
|
||||||
|
|
Loading…
Reference in New Issue