diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-08-21 15:57:12 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-08-21 15:57:12 (GMT) |
commit | 34c7c1b78d347f30ecb5124db7f365ffb385b5a1 (patch) | |
tree | 0df921f74f1540b0b7471cfd34ba4426628e3e3e /Source/CMakeLists.txt | |
parent | 38dfd36fdaad9c7e3767189b23d74c4953614139 (diff) | |
download | CMake-34c7c1b78d347f30ecb5124db7f365ffb385b5a1.zip CMake-34c7c1b78d347f30ecb5124db7f365ffb385b5a1.tar.gz CMake-34c7c1b78d347f30ecb5124db7f365ffb385b5a1.tar.bz2 |
made CMakeLib shared on windows
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r-- | Source/CMakeLists.txt | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 2720c9a..5f839cf 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -10,6 +10,8 @@ cmRegularExpression.cxx cmSourceFile.cxx cmSystemTools.cxx cmDirectory.cxx +cmDynamicLoader.cxx +cmCPluginAPI.cxx cmCommands.cxx cmTarget.cxx cmCustomCommand.cxx @@ -24,6 +26,7 @@ cmMakefileGenerator.h cmRegularExpression.h cmSourceFile.h cmSystemTools.h +cmDynamicLoader.h cmDirectory.h cmCommands.h cmTarget.h @@ -72,15 +75,23 @@ SET(SRCS ${SRCS} cmUnixMakefileGenerator.cxx cmUnixMakefileGenerator.h) # create a library used by the command line and the GUI -ADD_LIBRARY(CMakeLib ${SRCS}) +IF (WIN32) + ADD_LIBRARY(CMakeLib SHARED ${SRCS}) +ELSE (WIN32) + ADD_LIBRARY(CMakeLib ${SRCS}) +ENDIF (WIN32) + # always link in the library -LINK_LIBRARIES(CMakeLib) # the library is found here LINK_DIRECTORIES(${CMake_BINARY_DIR}/Source) ADD_EXECUTABLE(cmake cmakemain.cxx) ADD_EXECUTABLE(DumpDocumentation cmDumpDocumentation) -ADD_EXECUTABLE(ctest ctest.cxx cmSystemTools.cxx cmRegularExpression.cxx) +ADD_EXECUTABLE(ctest ctest.cxx) + +TARGET_LINK_LIBRARIES(cmake CMakeLib) +TARGET_LINK_LIBRARIES(DumpDocumentation CMakeLib) +TARGET_LINK_LIBRARIES(ctest CMakeLib) IF (UNIX) INCLUDE (${CMake_SOURCE_DIR}/Modules/FindCurses.cmake OPTIONAL) @@ -98,8 +109,11 @@ CONFIGURE_FILE( ${CMake_SOURCE_DIR}/Source/cmaketest.h.in ${CMake_BINARY_DIR}/Source/cmaketest.h ESCAPE_QUOTES) -ADD_EXECUTABLE(cmaketest cmaketest.cxx cmSystemTools.cxx) +ADD_EXECUTABLE(cmaketest cmaketest.cxx) +TARGET_LINK_LIBRARIES(cmaketest CMakeLib) +#ADD_LIBRARY(TEST_PLUGIN SHARED cmSimpleCommandPlugin.c) +#TARGET_LINK_LIBRARIES(TEST_PLUGIN CMakeLib) IF(BUILD_TESTING) ADD_TEST(DumpDocumentation ${CMake_BINARY_DIR}/Source/DumpDocumentation |