File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 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)
3232add_library (cpp-can-parser
3333 ${CPP_CAN_PARSER_COMPILATION_TYPE}
3434 ${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+ )
3542target_include_directories (cpp-can-parser
3643 PUBLIC ${CPPPARSER_INCLUDE_DIRECTORY}
3744 ${CMAKE_CURRENT_BINARY_DIR} /exports/
3845 PRIVATE ${CPPPARSER_INCLUDE_DIRECTORY_PRIVATE} )
3946generate_export_header(cpp-can-parser
4047 BASE_NAME cpp_can_parser
4148 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 )
4549
4650add_executable (can-parse
4751 utils/can-parse/can-parse.cpp
@@ -50,6 +54,16 @@ add_executable(can-parse
5054 utils/can-parse/check-frame.cpp)
5155target_link_libraries (can-parse cpp-can-parser)
5256
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+
5367if (BUILD_TESTING)
5468 file (COPY tests/dbc-files /
5569 DESTINATION dbc-files /)
You can’t perform that action at this time.
0 commit comments