gpui/CMakeLists.txt
august-alt eed4157d25 build: update spec, rules and cmake files
build: fix bugs

build: fix bugs

build: fix bugs

build: fix bugs
2021-06-08 18:58:16 +04:00

41 lines
950 B
CMake

cmake_minimum_required(VERSION 2.8)
project(GPUI)
set(GPUI_VERSION_MAJOR 0)
set(GPUI_VERSION_MINOR 1)
set(CMAKE_MODULE_PATH ${GPUI_SOURCE_DIR}/cmake)
set(GPUI_DIR "${CMAKE_BINARY_DIR}")
if(UNIX)
include(GNUInstallDirs)
else()
if (WIN32)
set(${CMAKE_INSTALL_LIBDIR} "lib")
set(${CMAKE_INSTALL_DATADIR} "share")
set(${CMAKE_INSTALL_INCLUDEDIR} "include")
set(${CMAKE_INSTALL_BINDIR} "bin")
message(STATUS "Setting installation destination on Windows to: ${CMAKE_INSTALL_PREFIX}")
else()
message(FATAL_ERROR "System not UNIX nor WIN32 - not implemented yet")
endif()
endif()
# configure and install GPUIConfig.cmake file
configure_file(
"${CMAKE_MODULE_PATH}/GPUIConfig.cmake.in"
"${CMAKE_BINARY_DIR}/GPUIConfig.cmake"
IMMEDIATE @ONLY)
# export the GPUI package
export(PACKAGE GPUI)
option(GPUI_BUILD_TESTS "Build the gpui tests." OFF)
add_subdirectory(src)
enable_testing()
add_subdirectory(tests)