diff options
author | Brad King <brad.king@kitware.com> | 2003-05-08 18:17:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-05-08 18:17:26 (GMT) |
commit | 332f4021911a7be31c89a697938ba469a624a9c3 (patch) | |
tree | 3337109c72731ce2c668f6826fd685cf31ba797b /Source/kwsys/CMakeLists.txt | |
parent | 6292558f36a30b20f1c1c3b0410004222d0e4f6f (diff) | |
download | CMake-332f4021911a7be31c89a697938ba469a624a9c3.zip CMake-332f4021911a7be31c89a697938ba469a624a9c3.tar.gz CMake-332f4021911a7be31c89a697938ba469a624a9c3.tar.bz2 |
ENH: Setup for testing as a stand-alone project.
Diffstat (limited to 'Source/kwsys/CMakeLists.txt')
-rw-r--r-- | Source/kwsys/CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt index f5df8e2..6edaf3f 100644 --- a/Source/kwsys/CMakeLists.txt +++ b/Source/kwsys/CMakeLists.txt @@ -1,3 +1,8 @@ +IF(NOT KWSYS_NAMESPACE) + SET(KWSYS_NAMESPACE "kwsys") + SET(KWSYS_DEFAULTS 1) +ENDIF(NOT KWSYS_NAMESPACE) + PROJECT(${KWSYS_NAMESPACE}) INCLUDE(${CMAKE_ROOT}/Modules/TestForANSIStreamHeaders.cmake) INCLUDE(${CMAKE_ROOT}/Modules/CheckIncludeFileCXX.cmake) @@ -45,3 +50,9 @@ IF(KWSYS_INCLUDE_INSTALL_DIR) INSTALL_FILES(${KWSYS_INCLUDE_INSTALL_DIR}/${KWSYS_NAMESPACE} FILES ${KWSYS_INCLUDES}) ENDIF(KWSYS_INCLUDE_INSTALL_DIR) + +IF(KWSYS_DEFAULTS) + INCLUDE_DIRECTORIES(${PROJECT_BINARY_DIR}/..) + ADD_EXECUTABLE(test1 test1.cxx) + TARGET_LINK_LIBRARIES(test1 ${KWSYS_NAMESPACE}) +ENDIF(KWSYS_DEFAULTS) |