Changeset 5 in pacpussensors


Ignore:
Timestamp:
Jun 7, 2013, 11:05:08 AM (11 years ago)
Author:
aschildk
Message:

Fix CMakeLists for cross compiling. Add linux build scripts

Location:
trunk
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r4 r5  
    2929#set(PacpusSensors_DOC_DIR          ${PacpusSensors_ROOT_DIR}/doc)
    3030#set(PacpusSensors_INCLUDE_DIR      ${PacpusSensors_ROOT_DIR}/include)
     31set(PACPUS_INCLUDE_DIR      ${PACPUS_ROOT_DIR}/include)
    3132
    3233# ========================================
     
    3839        message (STATUS "setting CMAKE_MODULE_PATH to: "  ${CMAKE_MODULE_PATH})
    3940elseif( NOT $ENV{PACPUS_ROOT} STREQUAL "")
     41    set(PACPUS_ROOT $ENV{PACPUS_ROOT})
    4042        set(CMAKE_MODULE_PATH $ENV{PACPUS_ROOT}/cmake)
    4143        string (REPLACE "\\" "/" CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH})
    4244        message (STATUS "setting CMAKE_MODULE_PATH to: " ${CMAKE_MODULE_PATH})
     45    message (STATUS "PACPUS_ROOT is: " ${PACPUS_ROOT})
    4346else()
    4447        message (FATAL_ERROR "Environment variable PACPUS_ROOT not set, please define it in your operating system or pass it as argument to the cmake command")
    4548endif()
    4649
    47     include(${PACPUS_ROOT}/cmake/PacpusUtilities.cmake)
    48     include(${PACPUS_ROOT}/cmake/PacpusConfiguration.cmake)
    49     include(${PACPUS_ROOT}/cmake/PacpusDependencies.cmake)
    50     include(${PACPUS_ROOT}/cmake/PacpusPlatforms.cmake)
     50    include(${CMAKE_MODULE_PATH}/PacpusUtilities.cmake)
     51    include(${CMAKE_MODULE_PATH}/PacpusConfiguration.cmake)
     52    include(${CMAKE_MODULE_PATH}/PacpusDependencies.cmake)
     53    include(${CMAKE_MODULE_PATH}/PacpusPlatforms.cmake)
    5154
    5255# ========================================
     
    9194#add_subdirectory(Alasca)
    9295add_subdirectory(CanGateway)
     96add_subdirectory(CanTest)
    9397
    9498# ========================================
Note: See TracChangeset for help on using the changeset viewer.