Skip to content

Commit

Permalink
Adding cmake integration to EVerest (#1)
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Lukas <sebastian.lukas@pionix.de>
  • Loading branch information
SebaLukas authored Mar 17, 2023
1 parent 64c8a2b commit 35c0c0a
Show file tree
Hide file tree
Showing 92 changed files with 1,035 additions and 5,218 deletions.
579 changes: 0 additions & 579 deletions .cproject

This file was deleted.

81 changes: 0 additions & 81 deletions .project

This file was deleted.

48 changes: 32 additions & 16 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,41 @@
# Copyright (c) 2017 Michael Heimpold <mhei@heimpold.de>
#

cmake_minimum_required (VERSION 2.8)
project (openv2g C)
cmake_minimum_required(VERSION 3.14)

set(OPENV2G_MAJOR_VERSION 0)
set(OPENV2G_MINOR_VERSION 9)
set(OPENV2G_PATCH_VERSION 5)
set(VERSION ${OPENV2G_MAJOR_VERSION}.${OPENV2G_MINOR_VERSION}.${OPENV2G_PATCH_VERSION})
set(SOVERSION 1)
project(openv2g
VERSION 0.9.5
DESCRIPTION "OpenV2G library for ISO IEC 15118 protocol"
LANGUAGES C
)

find_package(everest-cmake 0.1 REQUIRED
PATHS ../everest-cmake
)

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/openv2g.pc.cmakein ${CMAKE_CURRENT_BINARY_DIR}/openv2g.pc @ONLY)
# options
option(OPENV2G_INSTALL "Install the library (shared data might be installed anyway)" ${EVC_MAIN_PROJECT})
set(SOVERSION 1)

include_directories(src/appHandshake src/codec src/din src/iso1 src/iso2 src/transport src/xmldsig)
# logging library
add_subdirectory(lib)

file(GLOB SRC_FILES src/appHandshake/* src/codec/* src/din/* src/iso1/* src/iso2/* src/transport/* src/xmldsig/*)
add_library(openv2g SHARED ${SRC_FILES})
set_target_properties(openv2g PROPERTIES SOVERSION ${SOVERSION})
install(
TARGETS openv2g
EXPORT openv2g-targets
LIBRARY
)

install(TARGETS ${PROJECT_NAME} DESTINATION lib)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/openv2g.pc DESTINATION lib/pkgconfig)
# packaging
if (OPENV2G_INSTALL)
install(
DIRECTORY include/
TYPE INCLUDE
)

file(GLOB HEADERS src/appHandshake/*.h src/codec/*.h src/din/*.h src/iso1/*.h src/iso2/*.h src/transport/*.h src/xmldsig/*.h)
install(FILES ${HEADERS} DESTINATION include/${PROJECT_NAME})
evc_setup_package(
NAME everest-openv2g
NAMESPACE everest
EXPORT openv2g-targets
)
endif()
51 changes: 0 additions & 51 deletions Debug/makefile

This file was deleted.

8 changes: 0 additions & 8 deletions Debug/objects.mk

This file was deleted.

24 changes: 0 additions & 24 deletions Debug/sources.mk

This file was deleted.

30 changes: 0 additions & 30 deletions Debug/src/appHandshake/subdir.mk

This file was deleted.

45 changes: 0 additions & 45 deletions Debug/src/codec/subdir.mk

This file was deleted.

30 changes: 0 additions & 30 deletions Debug/src/din/subdir.mk

This file was deleted.

30 changes: 0 additions & 30 deletions Debug/src/iso1/subdir.mk

This file was deleted.

30 changes: 0 additions & 30 deletions Debug/src/iso2/subdir.mk

This file was deleted.

Loading

0 comments on commit 35c0c0a

Please sign in to comment.