1project(SYST_Examples) 2cmake_minimum_required (VERSION 2.8) 3 4get_filename_component( 5 THIS_PATH "${CMAKE_CURRENT_SOURCE_DIR}" 6 ABSOLUTE 7) 8 9set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${THIS_PATH}/cmake") 10 11if (defined $ENV{SYST_SDK}) 12 set(SYST_SDK "ENV{SYST_SDK}" CACHE PATH "SYS-T header and library root folder") 13else() 14 set(SYST_SDK "(not-set)" CACHE PATH "SYS-T header and library root folder") 15endif() 16 17find_package(SyST REQUIRED) 18 19# static linking flags 20# 21add_definitions(-DMIPI_SYST_STATIC) 22set(SYST_LIBRARIES ${SYST_LIBRARIES_STATIC}) 23 24#dynamic linking, requires location of mipi_syst.dll to be in the PATH. 25#set(SYST_LIBRARIES ${SYST_LIBRARIES_DYNAMIC}) 26 27add_subdirectory(hello) 28add_subdirectory(client)