mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-25 09:44:02 +00:00
49b9e0f05a
- Building with CMake for development is now actually sane - Split deps into projects and extra files - Building against external deps should still work but needs testing - Can now build out of the box without further adjustments as long as SDL(2) is found properly - Build Lua in C++ mode (so it can use exceptions instead of setjmp/longjmp) - Unfortunately we need to enable exceptions for this :( - Remove these defines: * AQUARIA_BUILD_SCENEEDITOR (now always on) * AQUARIA_BUILD_CONSOLE (now always on) * BBGE_BUILD_ACHIEVEMENTS_INTERNAL (now always on unless BBGE_BUILD_STEAMWORKS is defined) * BBGE_BUILD_OPENGL_DYNAMIC (now always on, define BBGE_BUILD_OPENGL_STATIC if needed) * BBGE_BUILD_FMOD_OPENAL_BRIDGE (now always on) - BBGE_BUILD_STEAMWORKS is not actually implemented (any volunteers?) - Prepare later removal of SDL & the old vc90 project from the repo. See #74 for extra notes.
11 lines
479 B
CMake
11 lines
479 B
CMake
OPTION(AQUARIA_INTERNAL_FTGL "Always use included FTGL library" TRUE)
|
|
if(AQUARIA_INTERNAL_FTGL)
|
|
message(STATUS "Using internal copy of FTGL")
|
|
SET(FTGLDIR ${CMAKE_CURRENT_SOURCE_DIR}/FTGL)
|
|
set(FTGL_INCLUDE_DIRS "${FTGLDIR}/include;${FREETYPE_INCLUDE_DIRS}" CACHE INTERNAL "")
|
|
include(freetype2.cmake) # Nothing else uses freetype2 directly
|
|
INCLUDE_DIRECTORIES(${FREETYPE_INCLUDE_DIRS})
|
|
add_subdirectory(FTGL)
|
|
else()
|
|
find_package(FTGL REQUIRED)
|
|
endif()
|