Skip to content

Commit

Permalink
add lcm include to lcm-gen
Browse files Browse the repository at this point in the history
  • Loading branch information
nosracd committed Apr 7, 2024
1 parent 9014ed3 commit fa094c1
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 7 deletions.
2 changes: 2 additions & 0 deletions lcmgen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ endif()
add_executable(lcm-gen ${lcm-gen_sources})
target_link_libraries(lcm-gen PRIVATE GLib2::glib)

target_include_directories(${lcm_lib} lcm-gen PRIVATE ${lcm_SOURCE_DIR})

install(TARGETS lcm-gen
EXPORT lcmTargets
RUNTIME DESTINATION bin
Expand Down
2 changes: 1 addition & 1 deletion lcmgen/emit_c.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
#define __STDC_FORMAT_MACROS // Enable integer types
#endif
#include <inttypes.h>
#include <lcm/lcm_version.h>

#include "../lcm/lcm_version.h"
#include "lcmgen.h"

#define INDENT(n) (4 * (n))
Expand Down
2 changes: 1 addition & 1 deletion lcmgen/emit_cpp.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
#include <unistd.h> /* _exit */
#endif
#include <inttypes.h>
#include <lcm/lcm_version.h>
#include <sys/stat.h>
#include <sys/types.h>

#include "../lcm/lcm_version.h"
#include "lcmgen.h"

#define INDENT(n) (4 * (n))
Expand Down
2 changes: 1 addition & 1 deletion lcmgen/emit_csharp.c
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#include <assert.h>
#include <inttypes.h>
#include <lcm/lcm_version.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>

#include "../lcm/lcm_version.h"
#include "getopt.h"
#include "lcmgen.h"

Expand Down
3 changes: 2 additions & 1 deletion lcmgen/emit_go.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
#define __STDC_FORMAT_MACROS // Enable integer types
#endif

#include "../lcm/lcm_version.h"
#include <lcm/lcm_version.h>

#include "lcmgen.h"

#define TABS "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"
Expand Down
2 changes: 1 addition & 1 deletion lcmgen/emit_java.c
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#include <assert.h>
#include <inttypes.h>
#include <lcm/lcm_version.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>

#include "../lcm/lcm_version.h"
#include "getopt.h"
#include "lcmgen.h"

Expand Down
2 changes: 1 addition & 1 deletion lcmgen/emit_lua.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <fcntl.h>
#include <glib.h>
#include <inttypes.h>
#include <lcm/lcm_version.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
Expand All @@ -11,7 +12,6 @@
#include <sys/types.h>
#include <unistd.h>

#include "../lcm/lcm_version.h"
#include "lcmgen.h"

// lua uses just 2 spaces per indent
Expand Down
2 changes: 1 addition & 1 deletion lcmgen/emit_python.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <fcntl.h>
#include <glib.h>
#include <inttypes.h>
#include <lcm/lcm_version.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
Expand All @@ -11,7 +12,6 @@
#include <sys/types.h>
#include <unistd.h>

#include "../lcm/lcm_version.h"
#include "lcmgen.h"

#define INDENT(n) (4 * (n))
Expand Down

0 comments on commit fa094c1

Please sign in to comment.