Skip to content

Commit

Permalink
Update CMakeLists.txt files for all -> final corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Dec 27, 2021
1 parent 50711ef commit 634409e
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions snippets/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
cmake_minimum_required(VERSION 3.13)

# Debug message
message("LWOW SNIPPETS: Entering lib source CMakeLists.txt")
message("Entering ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt")

# Set library name
set(LWOW_SNIPPETS_LIB_NAME "lwow_snippets")

# Register library to the system
add_library(${LWOW_SNIPPETS_LIB_NAME} INTERFACE)

# Setup generic source files
target_sources(${LWOW_SNIPPETS_LIB_NAME} PUBLIC
# Snippets sources
set(lwow_snippets_SRCS
${CMAKE_CURRENT_LIST_DIR}/scan_devices.c
)

# Setup include directories
target_include_directories(${LWOW_SNIPPETS_LIB_NAME} INTERFACE
# Snippets include directories
set(lwow_snippets_include_DIRS
${CMAKE_CURRENT_LIST_DIR}/include
)

# Register library to the system
add_library(lwow_snippets INTERFACE)
target_sources(lwow_snippets PUBLIC ${lwow_snippets_SRCS})
target_include_directories(lwow_snippets INTERFACE ${lwow_snippets_include_DIRS})

# Debug message
message("Entering ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt")

0 comments on commit 634409e

Please sign in to comment.