Changeset 302 in flair-src for trunk/lib/FlairVisionFilter/CMakeLists.txt


Ignore:
Timestamp:
02/25/19 16:28:34 (3 years ago)
Author:
Sanahuja Guillaume
Message:

modifs nouveau build system

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairVisionFilter/CMakeLists.txt

    r300 r302  
    11PROJECT(FlairVisionFilter)
    22cmake_minimum_required(VERSION 2.8)
    3 include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
    4 
    5 #if(NOT "${CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE}" MATCHES "armv5te")
    6 
    7 find_package(LibXml2 REQUIRED)
    8 
    9 execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion
    10                 OUTPUT_VARIABLE GCC_VERSION)
    11 
    12 if (GCC_VERSION VERSION_GREATER 4.3 OR GCC_VERSION VERSION_EQUAL 4.3)
    13         if (GCC_VERSION VERSION_GREATER 4.7 OR GCC_VERSION VERSION_EQUAL 4.7)
    14                 ADD_DEFINITIONS("-std=c++11")
    15         else()
    16                 ADD_DEFINITIONS("-std=c++0x")
    17         endif()
    18 else()
    19         message(STATUS "GCC version < 4.3, c+11 is not supported!")
    20 endif()
     3include($ENV{FLAIR_ROOT}/flair-src/cmake-modules/GlobalCmakeFlair.cmake)
    214
    225INCLUDE_DIRECTORIES(
    23         ${LIBXML2_INCLUDE_DIR}
    246        ${CMAKE_CURRENT_SOURCE_DIR}/src
    25         ${CMAKE_CURRENT_SOURCE_DIR}/src/unexported
    267        ${CMAKE_CURRENT_SOURCE_DIR}/../FlairCore/src
    278    ${CMAKE_CURRENT_SOURCE_DIR}/../FlairFilter/src
     
    2910)
    3011
    31 FILE(GLOB SRC_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")
     12FILE(GLOB SRC_FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")
    3213
    33 ADD_LIBRARY(${PROJECT_NAME}
    34         ${SRC_SRC}
     14FLAIR_LIB(${PROJECT_NAME} "${SRC_FILES}"
     15        INCLUDES_DEST_DIR ${PROJECT_NAME}
    3516)
    36 
    37 INSTALL(TARGETS ${PROJECT_NAME}
    38         LIBRARY DESTINATION $ENV{FLAIR_ROOT}/flair-bin/lib/${ARCH_DIR}
    39         ARCHIVE DESTINATION $ENV{FLAIR_ROOT}/flair-bin/lib/${ARCH_DIR}
    40 )
    41 
    42 FILE(GLOB HEADER_FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/*.h")
    43 INSTALL(FILES ${HEADER_FILES} DESTINATION $ENV{FLAIR_ROOT}/flair-dev/include/${PROJECT_NAME})
    44 
    45 add_custom_target(
    46         ${PROJECT_NAME}_compile_info
    47         COMMAND $ENV{FLAIR_ROOT}/flair-dev/scripts/compile_info.sh ${CMAKE_C_COMPILER} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/src/unexported/compile_info.h
    48 )
    49 
    50 add_dependencies(${PROJECT_NAME} ${PROJECT_NAME}_compile_info)
    51 
    52 #else()
    53 #    if(DEFINED CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE)
    54 #        warn("${PROJECT_NAME} will not be built for ${CMAKE_SYSTEM_PROCESSOR_DEFAULTTUNE} architecture")
    55 #    else()
    56 #        warn("${PROJECT_NAME} will not be built for ${CMAKE_SYSTEM_PROCESSOR} architecture")
    57 #    endif()
    58 #endif()
Note: See TracChangeset for help on using the changeset viewer.