Examples in a separate CMake project
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
add_executable(list_pod main.c)
|
||||
|
||||
find_package(${pkgName})
|
||||
|
||||
target_link_libraries(list_pod PRIVATE ${pkgName})
|
||||
target_include_directories(list_pod PRIVATE
|
||||
${CMAKE_SOURCE_DIR}/config
|
||||
|
||||
@@ -1,9 +1,2 @@
|
||||
target_link_libraries(${pkgName} yaml websockets)
|
||||
set_target_properties(${pkgName} PROPERTIES LINKER_LANGUAGE C)
|
||||
|
||||
option(BUILD_EXAMPLES "Build examples" OFF)
|
||||
|
||||
if(BUILD_EXAMPLES)
|
||||
message("Include examples")
|
||||
add_subdirectory(../examples examples)
|
||||
endif()
|
||||
Reference in New Issue
Block a user