-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
33 lines (24 loc) · 837 Bytes
/
CMakeLists.txt
File metadata and controls
33 lines (24 loc) · 837 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
# Copyright (c) 2022 Haofan Zheng
# Use of this source code is governed by an MIT-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT.
cmake_minimum_required(VERSION 3.14)
project(EclipseMonitor VERSION 0.0.1 LANGUAGES CXX)
OPTION(ECLIPSEMONITOR_TEST "Option to build EclipseMonitor test executable." OFF)
add_subdirectory(include)
set(ECLIPSEMONITOR_HOME
${CMAKE_CURRENT_LIST_DIR}
CACHE STRING
"Path to the eclipse monitor home directory"
FORCE)
set(ECLIPSEMONITOR_INCLUDE
${CMAKE_CURRENT_LIST_DIR}/include
CACHE STRING
"Path to the eclipse monitor include directory"
FORCE)
add_library(EclipseMonitor INTERFACE)
target_include_directories(EclipseMonitor INTERFACE include)
if(${ECLIPSEMONITOR_TEST})
enable_testing()
add_subdirectory(test)
endif(${ECLIPSEMONITOR_TEST})