mirror of
https://github.com/eclipse-openvehicle-api/openvehicle-api.git
synced 2026-04-21 11:38:16 +00:00
22
sdv_services/manifest_util/CMakeLists.txt
Normal file
22
sdv_services/manifest_util/CMakeLists.txt
Normal file
@@ -0,0 +1,22 @@
|
||||
# Define project
|
||||
project(manifest_util VERSION 1.0 LANGUAGES CXX)
|
||||
|
||||
# Define target
|
||||
add_library(manifest_util SHARED
|
||||
"manifest_util.h"
|
||||
"manifest_util.cpp")
|
||||
if (WIN32)
|
||||
target_link_libraries(manifest_util ${CMAKE_THREAD_LIBS_INIT} Rpcrt4.lib)
|
||||
elseif(UNIX)
|
||||
target_link_libraries(manifest_util rt ${CMAKE_DL_LIBS} ${CMAKE_THREAD_LIBS_INIT})
|
||||
endif()
|
||||
target_link_options(manifest_util PRIVATE)
|
||||
target_include_directories(manifest_util PRIVATE ./include/)
|
||||
set_target_properties(manifest_util PROPERTIES PREFIX "")
|
||||
set_target_properties(manifest_util PROPERTIES SUFFIX ".sdv")
|
||||
|
||||
# Build dependencies
|
||||
add_dependencies(manifest_util CompileCoreIDL)
|
||||
|
||||
# Appending the service in the service list
|
||||
set(SDV_Service_List ${SDV_Service_List} manifest_util PARENT_SCOPE)
|
||||
Reference in New Issue
Block a user