mirror of
https://github.com/linux-can/can-utils.git
synced 2026-09-23 16:41:02 +02:00
Compare commits
9
Commits
v2025.01
...
a24bff8b08
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a24bff8b08 | ||
|
|
fe9ea67814 | ||
|
|
6050aa155d | ||
|
|
302184f383 | ||
|
|
c542c9ada7 | ||
|
|
2b8c7c5f4b | ||
|
|
4577316bd6 | ||
|
|
4364d655b8 | ||
|
|
2e71e396c5 |
@@ -1,6 +1,12 @@
|
||||
*~
|
||||
*.a
|
||||
*.so
|
||||
*.so.*
|
||||
*.o
|
||||
.ccls-cache
|
||||
CMakeCache.txt
|
||||
CMakeFiles/
|
||||
cmake_install.cmake
|
||||
compile_commands.json
|
||||
tags
|
||||
/build
|
||||
|
||||
+10
-5
@@ -4,14 +4,18 @@ project(can-utils LANGUAGES C)
|
||||
|
||||
message(STATUS "CMake version: ${CMAKE_VERSION}")
|
||||
|
||||
include (CheckFunctionExists)
|
||||
include (CheckSymbolExists)
|
||||
include (GNUInstallDirs)
|
||||
include(CheckFunctionExists)
|
||||
include(CheckSymbolExists)
|
||||
include(GNUInstallDirs)
|
||||
|
||||
if(NOT CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_BUILD_TYPE Release)
|
||||
endif()
|
||||
|
||||
if(CMAKE_EXPORT_COMPILE_COMMANDS STREQUAL "")
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE BOOL "project default" FORCE)
|
||||
endif()
|
||||
|
||||
# Add an option to enable treating warnings as errors
|
||||
option(ENABLE_WERROR "Treat all compiler warnings as errors" OFF)
|
||||
|
||||
@@ -32,8 +36,8 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DCLOCK_TAI=11")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DSO_TXTIME=61")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DSCM_TXTIME=SO_TXTIME")
|
||||
|
||||
include_directories (.)
|
||||
include_directories (./include)
|
||||
include_directories(.)
|
||||
include_directories(./include)
|
||||
|
||||
check_function_exists(fork HAVE_FORK)
|
||||
|
||||
@@ -126,6 +130,7 @@ if(NOT ANDROID)
|
||||
|
||||
set_target_properties(isobusfs PROPERTIES
|
||||
PUBLIC_HEADER "${PUBLIC_HEADER_ISOBUSFS}"
|
||||
SOVERSION 0
|
||||
)
|
||||
|
||||
install(TARGETS isobusfs
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <linux/can/j1939.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <time.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
#ifndef J1939_LIB_H
|
||||
|
||||
Reference in New Issue
Block a user