mirror of
https://github.com/eclipse-openvehicle-api/openvehicle-api.git
synced 2026-02-05 15:18:45 +00:00
23 lines
814 B
CMake
23 lines
814 B
CMake
|
|
# Use new policy for project version settings and default warning level
|
||
|
|
cmake_policy(SET CMP0048 NEW) # requires CMake 3.14
|
||
|
|
cmake_policy(SET CMP0092 NEW) # requires CMake 3.15
|
||
|
|
|
||
|
|
# Define project
|
||
|
|
project(configuration_component_example VERSION 1.0 LANGUAGES CXX)
|
||
|
|
|
||
|
|
# Use C++17 support
|
||
|
|
set(CMAKE_CXX_STANDARD 17)
|
||
|
|
|
||
|
|
# Libary symbols are hidden by default
|
||
|
|
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
|
||
|
|
|
||
|
|
# Include link to export directory of SDV V-API development include files location
|
||
|
|
include_directories(${SDV_FRAMEWORK_DEV_INCLUDE})
|
||
|
|
|
||
|
|
# Add the dynamic library
|
||
|
|
add_library(configuration_component_example SHARED src/configuration_comp.cpp)
|
||
|
|
|
||
|
|
# Set extension to .sdv
|
||
|
|
set_target_properties(configuration_component_example PROPERTIES PREFIX "")
|
||
|
|
set_target_properties(configuration_component_example PROPERTIES SUFFIX ".sdv")
|