initial
This commit is contained in:
25
vnproglib/cpp/examples/ez_async_data/CMakeLists.txt
Normal file
25
vnproglib/cpp/examples/ez_async_data/CMakeLists.txt
Normal file
@ -0,0 +1,25 @@
|
||||
cmake_minimum_required(VERSION 2.8.4)
|
||||
project(ez_async_data)
|
||||
|
||||
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(ez_async_data ${SOURCE_FILES})
|
||||
|
||||
target_link_libraries(ez_async_data PRIVATE libvncxx)
|
||||
|
||||
if (UNIX OR APPLE)
|
||||
target_link_libraries(ez_async_data LINK_PUBLIC pthread)
|
||||
else()
|
||||
target_link_libraries(ez_async_data LINK_PUBLIC Advapi32 SetupAPI)
|
||||
endif()
|
||||
Reference in New Issue
Block a user