mirror of
https://github.com/eclipse-openvehicle-api/openvehicle-api.git
synced 2026-07-02 05:35:11 +00:00
23
sdv_services/hardware_ident/CMakeLists.txt
Normal file
23
sdv_services/hardware_ident/CMakeLists.txt
Normal file
@@ -0,0 +1,23 @@
|
||||
# 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)
|
||||
Reference in New Issue
Block a user