mirror of
https://github.com/eclipse-openvehicle-api/openvehicle-api.git
synced 2026-02-05 15:18:45 +00:00
24 lines
830 B
CMake
24 lines
830 B
CMake
# Define project
|
|
project(hardware_ident VERSION 1.0 LANGUAGES CXX)
|
|
|
|
# Define target
|
|
add_library(hardware_ident SHARED
|
|
"hardware_ident.h"
|
|
"hardware_ident.cpp")
|
|
if (WIN32)
|
|
target_link_libraries(hardware_ident ${CMAKE_THREAD_LIBS_INIT} Rpcrt4.lib)
|
|
elseif(UNIX)
|
|
#target_link_libraries(hardware_ident rt ${CMAKE_DL_LIBS} ${CMAKE_THREAD_LIBS_INIT})
|
|
target_link_libraries(hardware_ident rt ${CMAKE_DL_LIBS})
|
|
endif()
|
|
target_link_options(hardware_ident PRIVATE)
|
|
target_include_directories(hardware_ident PRIVATE ./include/)
|
|
set_target_properties(hardware_ident PROPERTIES PREFIX "")
|
|
set_target_properties(hardware_ident PROPERTIES SUFFIX ".sdv")
|
|
|
|
# Build dependencies
|
|
add_dependencies(hardware_ident CompileCoreIDL)
|
|
|
|
# Appending the service in the service list
|
|
set(SDV_Service_List ${SDV_Service_List} hardware_ident PARENT_SCOPE)
|