File tree 1 file changed +17
-3
lines changed
1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -32,16 +32,20 @@ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS True)
32
32
add_library (cpp-can-parser
33
33
${CPP_CAN_PARSER_COMPILATION_TYPE}
34
34
${CPPPARSER_SRC_FILES} )
35
+
36
+ file (GLOB_RECURSE CPPPARSER_PUBLIC_HEADERS "include/cpp-can-parser/*.h" )
37
+ set_target_properties (
38
+ cpp-can-parser PROPERTIES
39
+ PUBLIC_HEADER
40
+ "${CPPPARSER_PUBLIC_HEADERS} "
41
+ )
35
42
target_include_directories (cpp-can-parser
36
43
PUBLIC ${CPPPARSER_INCLUDE_DIRECTORY}
37
44
${CMAKE_CURRENT_BINARY_DIR} /exports/
38
45
PRIVATE ${CPPPARSER_INCLUDE_DIRECTORY_PRIVATE} )
39
46
generate_export_header(cpp-can-parser
40
47
BASE_NAME cpp_can_parser
41
48
EXPORT_FILE_NAME ${CMAKE_CURRENT_BINARY_DIR} /exports/cpp_can_parser_export.h)
42
- install (FILES cpp-can-parser
43
- ${CMAKE_CURRENT_BINARY_DIR} /cpp_can_parser_export.h
44
- DESTINATION ${CMAKE_CURRENT_BINARY_DIR} /include )
45
49
46
50
add_executable (can-parse
47
51
utils/can-parse/can-parse.cpp
@@ -50,6 +54,16 @@ add_executable(can-parse
50
54
utils/can-parse/check-frame.cpp)
51
55
target_link_libraries (can-parse cpp-can-parser)
52
56
57
+ install (
58
+ TARGETS can-parse cpp-can-parser
59
+ RUNTIME
60
+ DESTINATION bin
61
+ LIBRARY
62
+ DESTINATION lib
63
+ PUBLIC_HEADER
64
+ DESTINATION "include/cpp-can-parser"
65
+ )
66
+
53
67
if (BUILD_TESTING)
54
68
file (COPY tests/dbc-files /
55
69
DESTINATION dbc-files /)
You can’t perform that action at this time.
0 commit comments