initial
This commit is contained in:
24
vnproglib/c/examples/getting_started/CMakeLists.txt
Normal file
24
vnproglib/c/examples/getting_started/CMakeLists.txt
Normal file
@ -0,0 +1,24 @@
|
||||
cmake_minimum_required(VERSION 2.8.4)
|
||||
project(getting_started C)
|
||||
|
||||
add_subdirectory(../.. libvnc)
|
||||
|
||||
set(CMAKE_SUPPRESS_REGENERATION TRUE)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
|
||||
if (CMAKE_COMPILER_IS_GNUCC)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wpedantic -std=c90")
|
||||
endif()
|
||||
|
||||
set(SOURCE_FILES
|
||||
main.c)
|
||||
|
||||
include_directories("../../include")
|
||||
|
||||
add_executable(getting_started ${SOURCE_FILES})
|
||||
|
||||
target_link_libraries(getting_started LINK_PUBLIC libvnc)
|
||||
|
||||
if (UNIX OR APPLE)
|
||||
target_link_libraries(getting_started LINK_PUBLIC pthread)
|
||||
endif()
|
||||
Reference in New Issue
Block a user