cmake_minimum_required(VERSION 3.3)
project(lib)

set(GLFW_HEADERS "${PROJECT_SOURCE_DIR}/glfw/include" PARENT_SCOPE)

# GLFW options
# option(BUILD_SHARED_LIBS ON)
# option(GLFW_BUILD_EXAMPLES ON)
# option(GLFW_BUILD_TESTS ON)
# option(GLFW_BUILD_DOCS ON)
# option(GLFW_INSTALL OFF)
# option(GLFW_DOCUMENT_INTERNALS OFF)

# Add third-party libraries
add_subdirectory(glfw)
add_subdirectory(luajit-2.0)
add_subdirectory(luafilesystem)
add_subdirectory(freetype-2.6)
add_subdirectory(DevIL)


cmake_minimum_required(VERSION 3.3)
project(lib)

set(GLFW_HEADERS "${PROJECT_SOURCE_DIR}/glfw/include" PARENT_SCOPE)

# GLFW options
# option(BUILD_SHARED_LIBS ON)
# option(GLFW_BUILD_EXAMPLES ON)
# option(GLFW_BUILD_TESTS ON)
# option(GLFW_BUILD_DOCS ON)
# option(GLFW_INSTALL OFF)
# option(GLFW_DOCUMENT_INTERNALS OFF)

# Define JPEG variable so DevIL can found it (see CMake module FindJPEG.cmake 
# and DevIL/src-IL/CMakeLists.txt)
set(JPEG_LIBRARIES jpeg)
set(JPEG_FOUND TRUE)

# Add third-party libraries
add_subdirectory(glfw)
add_subdirectory(luajit-2.0)
add_subdirectory(luafilesystem)
add_subdirectory(freetype-2.6)
add_subdirectory(jpeg-9b)
add_subdirectory(DevIL)


Add JPEG_FOUND and JPEG_LIBRARIES vars
Add JPEG_FOUND and JPEG_LIBRARIES vars
