Changeset 302 in flair-src for trunk/tools/Controller/DualShock3


Ignore:
Timestamp:
Feb 25, 2019, 4:28:34 PM (6 years ago)
Author:
Sanahuja Guillaume
Message:

modifs nouveau build system

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/Controller/DualShock3/CMakeLists.txt

    r107 r302  
    11PROJECT(dualshock3)
    22cmake_minimum_required(VERSION 2.8)
    3 include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
     3include($ENV{FLAIR_ROOT}/flair-src/cmake-modules/GlobalCmakeFlair.cmake)
    44
    55if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i686" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i586" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64")
    66
    77SET(FLAIR_USE_SENSOR_ACTUATOR TRUE)
    8 include(${FLAIR_USE_FILE})
    98
    109ADD_DEFINITIONS(-fpermissive)
    1110
    12 INCLUDE_DIRECTORIES(
    13         ${FLAIR_INCLUDE_DIR}
    14         ${CMAKE_SOURCE_DIR}/src
    15 )
    16 
    17 LINK_DIRECTORIES (
    18         ${FLAIR_LIBRARY_DIR}
    19 )
    20 
    21 ADD_EXECUTABLE(${PROJECT_NAME}
     11SET(SRC_FILES
    2212        src/DualShock3.cpp
    2313        src/main.cpp
    2414)
    2515
    26 TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${FLAIR_LIBRARIES_NRT} bluetooth usb)
     16FLAIR_NRT_TOOL(${PROJECT_NAME} "${SRC_FILES}")
    2717
    28 INSTALL(
    29         TARGETS ${PROJECT_NAME}
    30         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/tools/${ARCH_DIR}
    31 )
    32 
    33 SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
     18TARGET_LINK_LIBRARIES(${PROJECT_NAME} bluetooth usb)
    3419
    3520else()
Note: See TracChangeset for help on using the changeset viewer.