-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
35 lines (28 loc) · 1 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
cmake_minimum_required(VERSION 3.0)
project(ActionCommands LANGUAGES C)
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/vmb_cmake_prefix_paths.cmake")
# read hardcoded package location information, if the example is still located in the original install location
include(${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/vmb_cmake_prefix_paths.cmake)
endif()
find_package(Vmb REQUIRED COMPONENTS C NAMES Vmb VmbC VmbCPP VmbImageTransform)
if(NOT TARGET VmbCExamplesCommon)
add_subdirectory(../Common VmbCExamplesCommon_build)
endif()
add_executable(ActionCommands_VmbC
main.c
ActionCommands.c
ActionCommands.h
Helper.c
Helper.h
ImageAcquisition.c
ImageAcquisition.h
${COMMON_SOURCES}
)
target_link_libraries(ActionCommands_VmbC PRIVATE Vmb::C VmbCExamplesCommon)
if (UNIX)
target_link_libraries(ActionCommands_VmbC PRIVATE pthread)
endif()
set_target_properties(ActionCommands_VmbC PROPERTIES
C_STANDARD 11
VS_DEBUGGER_ENVIRONMENT "PATH=${VMB_BINARY_DIRS};$ENV{PATH}"
)