-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
31 lines (19 loc) · 786 Bytes
/
CMakeLists.txt
File metadata and controls
31 lines (19 loc) · 786 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
# Minimum CMake version required
cmake_minimum_required(VERSION 3.10)
set(PROJECT_NAME "OSCompatible")
# Project name and version
project(${PROJECT_NAME} VERSION 1.3.1)
option(${PROJECT_NAME}_IncludeExamples "Include OSCompatiable Examples" OFF)
option(${PROJECT_NAME}_IncludeTests "Include OSCompatiable Examples" OFF)
# Create an interface library target
add_library(${PROJECT_NAME} INTERFACE)
if(IncludeExamples)
add_subdirectory(examples)
endif()
if(IncludeTests)
add_subdirectory(tests)
endif()
# Specify the include directories for the header files
target_include_directories(${PROJECT_NAME} INTERFACE ${CMAKE_SOURCE_DIR}/include)
# Optionally, you can set properties like compile options if needed
target_compile_features(${PROJECT_NAME} INTERFACE cxx_std_17)