Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (34 sloc) 1.03 KB
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT("glcs" "C")
SET(GLCS_SOVER 0)
SET(GLCS_VER 0.6.3)
FIND_PACKAGE(Threads REQUIRED)
IF (NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE "Release")
ENDIF (NOT CMAKE_BUILD_TYPE)
# Define options.
OPTION(QUICKLZ "QuickLZ support" ON)
OPTION(LZO "LZO support" ON)
OPTION(LZJB "LZJB support" ON)
OPTION(BINARIES "Build and install glc-capture and glc-play" ON)
OPTION(HOOK "Build and install glc-hook" ON)
OPTION(SCRIPTS "Install sample scripts." OFF)
# Define search and install paths.
IF (NOT LIBRARY_INSTALL_DIR)
SET(LIBRARY_INSTALL_DIR "lib")
# Support the old "mlibdir" option too.
IF (MLIBDIR)
SET(LIBRARY_INSTALL_DIR ${MLIBDIR})
ENDIF (MLIBDIR)
ENDIF (NOT LIBRARY_INSTALL_DIR)
IF (NOT BINARY_INSTALL_DIR)
SET(BINARY_INSTALL_DIR "bin")
ENDIF (NOT BINARY_INSTALL_DIR)
IF (NOT SCRIPTS_INSTALL_DIR)
SET(SCRIPTS_INSTALL_DIR "share/glc")
ENDIF (NOT SCRIPTS_INSTALL_DIR)
# Add stuff to build.
ADD_SUBDIRECTORY("src")
IF (SCRIPTS)
ADD_SUBDIRECTORY("scripts")
ENDIF (SCRIPTS)