File tree Expand file tree Collapse file tree 5 files changed +4
-16
lines changed Expand file tree Collapse file tree 5 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -54,16 +54,16 @@ else(CMAKE_BUILD_TYPE MATCHES Release)
54
54
add_definitions (-D__BUILDTYPE__= "debug" )
55
55
endif (CMAKE_BUILD_TYPE MATCHES Release )
56
56
57
-
58
- # add include directory
59
- include_directories (include )
60
-
61
57
# create our capture library
62
58
add_library (openpnp-capture SHARED common/libmain.cpp
63
59
common/context.cpp
64
60
common/logging.cpp
65
61
common/stream.cpp )
66
62
63
+ target_include_directories (openpnp-capture PUBLIC
64
+ $< BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include>
65
+ $< INSTALL_INTERFACE:include>
66
+ )
67
67
# define common properties
68
68
set_target_properties (openpnp-capture PROPERTIES
69
69
VERSION ${OPENPNP_CAPTURE_LIB_VERSION}
Original file line number Diff line number Diff line change @@ -14,9 +14,6 @@ TEMPLATE = app
14
14
macx:CONFIG -= app_bundle
15
15
# CONFIG += console
16
16
17
- # add the openpnp-capture include path
18
- INCLUDEPATH += ../include
19
-
20
17
SOURCES += main.cpp \
21
18
mainwindow.cpp
22
19
Original file line number Diff line number Diff line change @@ -15,9 +15,6 @@ project (openpnp-capture-test)
15
15
16
16
set (SOURCE main.cpp ../../common/logging.cpp )
17
17
18
- # add include directory
19
- include_directories (../include .. )
20
-
21
18
add_executable (openpnp-capture-test ${SOURCE} )
22
19
23
20
target_link_libraries (openpnp-capture-test openpnp-capture )
Original file line number Diff line number Diff line change 13
13
cmake_minimum_required (VERSION 3.0 )
14
14
project (openpnp-capture-test )
15
15
16
- # add include directory
17
- include_directories (../include .. )
18
-
19
16
set (SOURCE main.cpp ../../common/logging.cpp )
20
17
21
18
add_executable (openpnp-capture-test ${SOURCE} )
Original file line number Diff line number Diff line change 13
13
cmake_minimum_required (VERSION 3.0 )
14
14
project (openpnp-capture-test )
15
15
16
- # add include directory
17
- include_directories (../include .. )
18
-
19
16
set (SOURCE main.cpp ../../common/logging.cpp )
20
17
21
18
add_executable (openpnp-capture-test ${SOURCE} )
You can’t perform that action at this time.
0 commit comments