summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/complex
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2016-12-02 11:34:37 (GMT)
committerBrad King <brad.king@kitware.com>2016-12-07 13:24:05 (GMT)
commit6731025211bb300f762ac4d4984de124dc38c95a (patch)
tree12d1140e1b4ce04ef1d9141a1683bcdcb833e077 /Tests/QtAutogen/complex
parent43d77e1dadab06f9b49ebb6cbfdaffcc4b708f1a (diff)
downloadCMake-6731025211bb300f762ac4d4984de124dc38c95a.zip
CMake-6731025211bb300f762ac4d4984de124dc38c95a.tar.gz
CMake-6731025211bb300f762ac4d4984de124dc38c95a.tar.bz2
QtAutogen: Tests: Don't include CMAKE_CURRENT_BINARY_DIR
Diffstat (limited to 'Tests/QtAutogen/complex')
-rw-r--r--Tests/QtAutogen/complex/Bdir/CMakeLists.txt1
-rw-r--r--Tests/QtAutogen/complex/CMakeLists.txt3
2 files changed, 2 insertions, 2 deletions
diff --git a/Tests/QtAutogen/complex/Bdir/CMakeLists.txt b/Tests/QtAutogen/complex/Bdir/CMakeLists.txt
index d9d4aa7..d338763 100644
--- a/Tests/QtAutogen/complex/Bdir/CMakeLists.txt
+++ b/Tests/QtAutogen/complex/Bdir/CMakeLists.txt
@@ -6,5 +6,4 @@ set(CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE ON)
add_library(libB SHARED libB.cpp)
generate_export_header(libB)
-# set_property(TARGET libB APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )
target_link_libraries(libB LINK_PUBLIC libA)
diff --git a/Tests/QtAutogen/complex/CMakeLists.txt b/Tests/QtAutogen/complex/CMakeLists.txt
index 0d44f50..30d2708 100644
--- a/Tests/QtAutogen/complex/CMakeLists.txt
+++ b/Tests/QtAutogen/complex/CMakeLists.txt
@@ -1,7 +1,6 @@
cmake_minimum_required(VERSION 3.1)
# -- Test: AUTOMOC AUTORCC AUTOUIC
-include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_definitions(-DFOO -DSomeDefine="Barx")
# enable relaxed mode so automoc can handle all the special cases:
@@ -77,5 +76,7 @@ add_library(libC SHARED libC.cpp)
set_target_properties(libC PROPERTIES AUTOMOC TRUE)
generate_export_header(libC)
target_link_libraries(libC LINK_PUBLIC libB)
+target_include_directories(libC PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
+set_property(TARGET libC APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_BINARY_DIR} )
target_link_libraries(QtAutogen codeeditorLib ${QT_LIBRARIES} libC)