forked from Pulse-Eight/libcec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
34 lines (27 loc) · 1.03 KB
/
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
33
34
project(libcec)
cmake_minimum_required(VERSION 2.8.9)
set(LIBCEC_VERSION_MAJOR 4)
set(LIBCEC_VERSION_MINOR 0)
set(LIBCEC_VERSION_PATCH 2)
# cec-client
add_subdirectory(src/cec-client)
add_dependencies(cec-client cec)
# cecc-client
add_subdirectory(src/cecc-client)
add_dependencies(cecc-client cec)
# pyCecClient
add_subdirectory(src/pyCecClient)
# libCEC
add_subdirectory(src/libcec)
# version number
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/include/version.h.in
${CMAKE_CURRENT_SOURCE_DIR}/include/version.h)
# resource files for windows
if(WIN32)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/project/LibCecSharp/LibCecSharp.rc.in
${CMAKE_CURRENT_SOURCE_DIR}/project/LibCecSharp/LibCecSharp.rc)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/LibCecSharp/AssemblyInfo.cpp.in
${CMAKE_CURRENT_SOURCE_DIR}/src/LibCecSharp/AssemblyInfo.cpp)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/project/libCEC-version.nsh.in
${CMAKE_CURRENT_SOURCE_DIR}/project/libCEC-version.nsh)
endif()