Categorieën: Alle - configuration - files - source - dependencies

door HopeFAL Ministries 4 jaren geleden

350

CMakeLists

The text outlines the configuration and setup of a project named libcec, detailing its dependencies, source directories, and version information. It includes the necessary CMake configuration commands for building the project and setting up dependencies such as cecc-client and pyCecClient.

CMakeLists

project(libcec)

endif()

if(WIN32)

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/project/libCEC-version.nsh.in
${CMAKE_CURRENT_SOURCE_DIR}/project/libCEC-version.nsh)
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/LibCecSharp/LibCecSharp.rc.in
${CMAKE_CURRENT_SOURCE_DIR}/project/LibCecSharp/LibCecSharp.rc)

# resource files for windows

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/include/version.h.in

${CMAKE_CURRENT_SOURCE_DIR}/include/version.h)

# version number

add_subdirectory(src/libcec)

# libCEC

add_subdirectory(src/pyCecClient)

# pyCecClient

add_dependencies(cecc-client cec)

Main topic

add_subdirectory(src/cecc-client)

# cecc-client

add_dependencies(cec-client cec)

add_subdirectory(src/cec-client)

# cec-client

set(LIBCEC_VERSION_PATCH 3)

set(LIBCEC_VERSION_MINOR 0)

set(LIBCEC_VERSION_MAJOR 4)

cmake_minimum_required(VERSION 2.8.9)