Skip to content

Commit

Permalink
Make sure project depending on CTK can include ctkTest.h. See commont…
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfr committed Dec 8, 2011
1 parent c4fd376 commit 61d5a94
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Libs/Testing/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
project(CTKTesting)

# CMake Macros
include(CMake/ctkMacroGenerateMocs.cmake)
12 changes: 12 additions & 0 deletions Utilities/LastConfigureStep/CTKGenerateCTKConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,18 @@ set(CTK_INCLUDE_DIRS_CONFIG
${CTK_BASE_INCLUDE_DIRS}
)

# Consider "headeronly" libraries
set(headeronly_libs CTKTesting)
foreach(lib ${headeronly_libs})
set(${lib}_INCLUDE_DIRS ${${lib}_SOURCE_DIR} ${${lib}_BINARY_DIR})
ctkFunctionGetIncludeDirs(${lib}_INCLUDE_DIRS ${lib})
set(CTK_LIBRARY_INCLUDE_DIRS_CONFIG "${CTK_LIBRARY_INCLUDE_DIRS_CONFIG}
set(${lib}_INCLUDE_DIRS \"${${lib}_INCLUDE_DIRS}\")")
set(CTK_INCLUDE_DIRS_CONFIG ${CTK_INCLUDE_DIRS_CONFIG} ${${lib}_INCLUDE_DIRS})
endforeach()



# Library directory.
set(CTK_LIBRARY_DIRS_CONFIG ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})

Expand Down

0 comments on commit 61d5a94

Please sign in to comment.