-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
47 lines (34 loc) · 803 Bytes
/
CMakeLists.txt
File metadata and controls
47 lines (34 loc) · 803 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
43
44
45
46
47
cmake_minimum_required(VERSION 3.13.4)
project(lvcc
VERSION "0.0.1"
DESCRIPTION "LabIEW C/C++ library"
LANGUAGES C CXX)
set(NAMESPACE lvcc)
##
## CMake module paths
##
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
##
## Compile support
##
# Export compile database for IDEs, needed for QtCreator
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
##
## Import functions
##
include(setup_ide_folders)
include(get_standard_library_name)
# Check for name of standard library, use by common
include(CheckCXXSourceCompiles)
get_standard_library_name(STANDARD_LIBRARY)
##
## Targets/Sources
##
add_subdirectory(lvcc)
add_subdirectory(test)
##
## Compile options
##
# Set the default build type if none specified by user
include(BuildType)