Make building DFusion optional.

develop
Petr Mrázek 2011-07-30 22:08:24 +02:00
parent 9cf69164ed
commit 262e915b93
2 changed files with 4 additions and 3 deletions

@ -121,7 +121,7 @@ IF(UNIX)
add_definitions(-DLINUX_BUILD) add_definitions(-DLINUX_BUILD)
SET(CMAKE_CXX_FLAGS_DEBUG "-g -Wall") SET(CMAKE_CXX_FLAGS_DEBUG "-g -Wall")
SET(CMAKE_CXX_FLAGS "-fvisibility=hidden -m32 -std=c++0x") SET(CMAKE_CXX_FLAGS "-fvisibility=hidden -m32 -std=c++0x")
SET(CMAKE_C_FLAGS "-fvisibility=hidden -m32 -std=c++0x") SET(CMAKE_C_FLAGS "-fvisibility=hidden -m32")
SET(PROJECT_LIBS rt ) SET(PROJECT_LIBS rt )
ELSE() ELSE()

@ -99,9 +99,10 @@ ENDMACRO(DFHACK_PLUGIN)
#RECURSE_DIRS() #RECURSE_DIRS()
# Dfusion plugin (Windows only right now) # Dfusion plugin (Windows only right now)
IF(NOT UNIX) OPTION(BUILD_DFUSION "Build DFusion." ON)
if(NOT UNIX AND BUILD_DFUSION)
add_subdirectory (Dfusion) add_subdirectory (Dfusion)
ENDIF() endif()
OPTION(BUILD_QTPLUG "Build the experimental Qt plugin." OFF) OPTION(BUILD_QTPLUG "Build the experimental Qt plugin." OFF)
if(BUILD_QTPLUG) if(BUILD_QTPLUG)