-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
32 lines (24 loc) · 939 Bytes
/
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
# CMake minimum version
cmake_minimum_required(VERSION 3.10)
# Cmake file for making the PlayzerX library
project( PlayzerX )
# Specifies a library name, specifies whether the library is STATIC or
# SHARED, and provides relative paths to the source code. You can
# define multiple libraries by adding multiple add_library() commands,
# and CMake builds them for you
add_library( # Library name
PlayzerX
# Library type (SHARED or STATIC)
SHARED
# Source files
PlayzerX.cpp
MTISerial.cpp)
# Require C++11
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Add directory for libary header files
target_include_directories( PlayzerX PRIVATE include )
target_include_directories( PlayzerX PRIVATE mtidevice/include )
target_link_libraries( PlayzerX ${CMAKE_THREAD_LIBS_INIT} )
# Build the customer demo app as well
add_subdirectory(demo_source)