forked from august-alt/gpui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
42 lines (31 loc) · 977 Bytes
/
CMakeLists.txt
File metadata and controls
42 lines (31 loc) · 977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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}")
include(TranslationUtils)
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)