diff options
| -rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 06edb6a..635a50f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,10 +48,12 @@ else() add_dependencies(vterm-module libvterm) endif() -include_directories(${LIBVTERM_INCLUDE_DIR}) +add_library(vterm STATIC IMPORTED) +set_target_properties(vterm PROPERTIES IMPORTED_LOCATION ${LIBVTERM_LIBRARY}) +target_include_directories(vterm INTERFACE ${LIBVTERM_INCLUDE_DIR}) # Link with libvterm -target_link_libraries(vterm-module ${LIBVTERM_LIBRARY}) +target_link_libraries(vterm-module PUBLIC vterm) # Custom run command for testing add_custom_target(run |
