File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,20 @@ set(CPPPARSER_SRC_FILES
1818 src/parsing/Tokenizer.cpp
1919 src/analysis/CANFrameAnalysis.cpp)
2020
21- add_library (cpp_can_parser STATIC ${CPPPARSER_SRC_FILES} )
22- target_include_directories (cpp_can_parser
21+ set (CPP_CAN_PARSER_COMPILATION_TYPE SHARED)
22+ if (CPP_CAN_PARSER_USE_STATIC)
23+ set (CPP_CAN_PARSER_COMPILATION_TYPE STATIC )
24+ endif ()
25+
26+ add_library (cpp-can-parser
27+ ${CPP_CAN_PARSER_COMPILATION_TYPE}
28+ ${CPPPARSER_SRC_FILES} )
29+ target_include_directories (cpp-can-parser
2330 PUBLIC ${CPPPARSER_INCLUDE_DIRECTORY} )
2431
2532add_executable (can-parse
2633 utils/can-parse/can-parse.cpp
2734 utils/can-parse/print-frame.cpp
2835 utils/can-parse/print-single-frame.cpp
2936 utils/can-parse/check-frame.cpp)
30- target_link_libraries (can-parse cpp_can_parser )
37+ target_link_libraries (can-parse cpp-can-parser )
You can’t perform that action at this time.
0 commit comments