forked from mlukaszek/evdipp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
32 lines (26 loc) · 861 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
project(evdipp)
cmake_minimum_required(VERSION 2.8.0)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(ExternalProject)
ExternalProject_Add(github_evdi
GIT_REPOSITORY https://github.com/DisplayLink/evdi.git
GIT_TAG devel
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND ""
BUILD_COMMAND cd library && make
INSTALL_COMMAND ""
)
ExternalProject_Get_Property(github_evdi SOURCE_DIR)
set(LIBEVDI_DIR ${SOURCE_DIR}/library)
install(FILES ${LIBEVDI_DIR}/libevdi.so DESTINATION lib RENAME libevdi.so.0)
install(FILES ${LIBEVDI_DIR}/evdi_lib.h DESTINATION include)
add_library(libevdi STATIC IMPORTED)
set_target_properties(libevdi PROPERTIES
IMPORTED_LOCATION ${LIBEVDI_DIR}/libevdi.so
)
add_dependencies(libevdi github_evdi)
include_directories(${LIBEVDI_DIR})
add_subdirectory(libevdipp)
add_subdirectory(example)
add_subdirectory(monitorsim)