cmake_minimum_required(VERSION 2.8.4)
project(firmware_update)

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(getting_started ${SOURCE_FILES})

target_link_libraries(getting_started PRIVATE libvncxx)

if (UNIX OR APPLE)
	target_link_libraries(getting_started LINK_PUBLIC pthread)
else()
	target_link_libraries(getting_started LINK_PUBLIC Advapi32 SetupAPI)
endif()
