-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
40 lines (32 loc) · 1.22 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
35
36
37
38
39
40
project(libcec)
cmake_minimum_required(VERSION 2.8.9)
set(LIBCEC_VERSION_MAJOR 4)
set(LIBCEC_VERSION_MINOR 0)
set(LIBCEC_VERSION_PATCH 4)
find_program(CCACHE_FOUND ccache)
if(CCACHE_FOUND)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
endif(CCACHE_FOUND)
# 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()