initial
This commit is contained in:
23
vnproglib/cpp/examples/uart_protocol/CMakeLists.txt
Normal file
23
vnproglib/cpp/examples/uart_protocol/CMakeLists.txt
Normal file
@ -0,0 +1,23 @@
|
||||
cmake_minimum_required(VERSION 2.8.4)
|
||||
project(uart_protocol)
|
||||
|
||||
set(CMAKE_SUPPRESS_REGENERATION TRUE)
|
||||
|
||||
add_subdirectory(../.. libvncxx)
|
||||
|
||||
if(CMAKE_COMPILER_ID MATCHES "GNU|Clang")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
||||
endif()
|
||||
|
||||
set(SOURCE_FILES
|
||||
main.cpp)
|
||||
|
||||
include_directories(../../include)
|
||||
|
||||
add_executable(uart_protocol ${SOURCE_FILES})
|
||||
|
||||
target_link_libraries(uart_protocol LINK_PUBLIC libvncxx)
|
||||
|
||||
if (UNIX OR APPLE)
|
||||
target_link_libraries(uart_protocol LINK_PUBLIC pthread)
|
||||
endif()
|
||||
Reference in New Issue
Block a user