-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
65 lines (48 loc) · 2 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# // ------------------------------------------------------------------------------
#
# This is simple utility-lib for threading.
#
# License: see "LICENSE" file.
# Tools: Visual Studio Community, Ninja, CMake, MSVC || CLang || GCC.
# API: C/C++.
# Platforms: Any with C++.
#
# // ------------------------------------------------------------------------------
# =================================================================================
# CMake Meta-Data
# =================================================================================
# CMake-Version
cmake_minimum_required ( VERSION 3.6 FATAL_ERROR )
# =================================================================================
# PROJECT
# =================================================================================
# Project Name
set ( PROJECT_NAME "cxx-threads-utils-lib" )
# Project Version
set ( PROJECT_VERSION 1.0.0 )
# Configure Project
project ( ${PROJECT_NAME} VERSION ${PROJECT_VERSION} DESCRIPTION "CXX Threading Utility Library Project" LANGUAGES C CXX )
# C Version
#set ( CMAKE_C_STANDARD 99 )
# C++ Version
#set ( CMAKE_CXX_STANDARD 11 )
# Make Build Libs & Executables to be position-independent, like SHARED libs.
#set ( CMAKE_POSITION_INDEPENDENT_CODE ON )
# =================================================================================
# CONFIGS
# =================================================================================
# CMake include-files dir (Global variable for all sub-projects).
set ( PROJECT_CMAKE_INCLUDES_DIR "${CMAKE_SOURCE_DIR}/cmake" )
# Platform-specific
include ( "${PROJECT_CMAKE_INCLUDES_DIR}/platform.cmake" )
# Paths
include ( "${PROJECT_CMAKE_INCLUDES_DIR}/paths.cmake" )
# Options
include ( "${PROJECT_CMAKE_INCLUDES_DIR}/options.cmake" )
# =================================================================================
# MODULES
# =================================================================================
# Library
add_subdirectory ( "src/cxx/ctul" )
# Demo
add_subdirectory ( "src/cxx/demo" )