-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
33 lines (23 loc) · 1.03 KB
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/Libraries")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/Libraries")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/Binaries")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE INTERNAL "")
option(BUILD_SHARED_LIBS "Build the project with shared libraries." ON)
project("UniText" VERSION 0.0.1 LANGUAGES C)
set(VALID_BUILD_TYPES "Release" "Debug" "MinSizeRel" "RelWithDebInfo")
if(NOT CMAKE_CONFIGURATION_TYPES)
if("${CMAKE_BUILD_TYPE}" STREQUAL "")
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Build configuration" FORCE)
endif()
list(FIND VALID_BUILD_TYPES "${CMAKE_BUILD_TYPE}" INDEX)
if(${INDEX} MATCHES -1)
message(FATAL_ERROR "Invalid build type. Valid build types are: ${VALID_BUILD_TYPES}")
endif()
if(DEFINED CMAKE_BUILD_TYPE)
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS ${VALID_BUILD_TYPES})
endif()
endif()
add_subdirectory("UniText")
add_subdirectory("Examples")
add_subdirectory("Tests")