Skip to content

Commit

Permalink
Minor updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
yugr committed Feb 17, 2024
1 parent 65355e3 commit d1ec67d
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions doc/CMakeIntegration.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ cmake_minimum_required(VERSION 3.21)
project(prog)
add_executable(prog prog.c)
add_executable(prog
prog.c
)
target_link_libraries(prog PRIVATE xcb)
```
Expand All @@ -17,12 +19,17 @@ project(prog)
enable_language(ASM)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/libxcb.so.tramp.S ${CMAKE_CURRENT_BINARY_DIR}/libxcb.so.init.c
COMMAND implib-gen.py /usr/lib/x86_64-linux-gnu/libxcb.so
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/libxcb.so.tramp.S
${CMAKE_CURRENT_BINARY_DIR}/libxcb.so.init.c
COMMAND implib-gen.py -q /usr/lib/x86_64-linux-gnu/libxcb.so
DEPENDS /usr/lib/x86_64-linux-gnu/libxcb.so
)
add_executable(prog prog.c ${CMAKE_CURRENT_BINARY_DIR}/libxcb.so.tramp.S ${CMAKE_CURRENT_BINARY_DIR}/libxcb.so.init.c)
add_executable(prog
prog.c
${CMAKE_CURRENT_BINARY_DIR}/libxcb.so.tramp.S
${CMAKE_CURRENT_BINARY_DIR}/libxcb.so.init.c
)
target_link_libraries(prog PRIVATE dl)
```

0 comments on commit d1ec67d

Please sign in to comment.