Skip to content

Commit

Permalink
BUILD: Move CMake options to the top, for better visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Jan 23, 2017
1 parent a268b01 commit 5d1dd4d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ project(xoreos CXX)
set(xoreos_VERSION 0.0.4)


# -------------------------------------------------------------------------
# options!
option(Boost_USE_STATIC_LIBS "Use Boost static libraries" OFF)
option(GLEW_INTERNAL "Use internal glew libraries" OFF)
option(XOREOS_BUILD_DOCUMENTATION "Use Doxygen to create the HTML based API documentation" OFF)


# -------------------------------------------------------------------------
# load some cmake modules from cmake/ subfolder
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
Expand Down Expand Up @@ -225,8 +232,6 @@ find_package(ZLIB REQUIRED)
include_directories(${ZLIB_INCLUDE_DIRS})
list(APPEND XOREOS_LIBRARIES ${ZLIB_LIBRARIES})

option(Boost_USE_STATIC_LIBS "Use Boost static libraries" OFF)

find_package(Boost COMPONENTS system filesystem regex date_time atomic locale REQUIRED)

include_directories(${Boost_INCLUDE_DIRS})
Expand Down Expand Up @@ -290,8 +295,6 @@ endif(ICONV_SECOND_ARGUMENT_IS_CONST)

add_definitions(-DGLEW_NO_GLU)

option(GLEW_INTERNAL "Use internal glew libraries" OFF)

set(GLEW_FOUND 0)
if(NOT GLEW_INTERNAL)
find_package(GLEW)
Expand Down Expand Up @@ -384,7 +387,6 @@ endif()

# -------------------------------------------------------------------------
# documentation
option(XOREOS_BUILD_DOCUMENTATION "Use Doxygen to create the HTML based API documentation" OFF)
if(XOREOS_BUILD_DOCUMENTATION)
find_package(Doxygen)
if (NOT DOXYGEN_FOUND)
Expand Down

0 comments on commit 5d1dd4d

Please sign in to comment.