2002-04-22 19:51:26 +04:00
|
|
|
CMAKE_MINIMUM_REQUIRED(VERSION 1.3)
|
2002-01-20 05:24:55 +03:00
|
|
|
#
|
|
|
|
# Create exe.
|
|
|
|
#
|
2002-04-09 20:02:48 +04:00
|
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTEST_CXX_FLAGS")
|
2002-12-14 01:35:00 +03:00
|
|
|
|
2002-05-02 21:17:10 +04:00
|
|
|
# Link to CMake lib
|
|
|
|
LINK_DIRECTORIES(${Complex_BINARY_DIR}/../../Source)
|
2003-06-23 16:58:58 +04:00
|
|
|
LINK_DIRECTORIES(${Complex_BINARY_DIR}/../../Source/kwsys)
|
2002-04-11 19:30:05 +04:00
|
|
|
# Use LINK_LIBRARIES instead of TARGET_LINK_LIBRARIES to
|
2002-05-02 21:17:10 +04:00
|
|
|
SET(COMPLEX_LIBS CMakeTestLibrary;CMakeTestLibraryShared;CMakeTestCLibraryShared)
|
2002-04-11 19:30:05 +04:00
|
|
|
LINK_LIBRARIES(${COMPLEX_LIBS})
|
2001-08-23 21:57:45 +04:00
|
|
|
|
2002-01-19 03:21:43 +03:00
|
|
|
|
2002-05-02 21:17:10 +04:00
|
|
|
ADD_EXECUTABLE(complex complex)
|
2002-08-29 00:33:38 +04:00
|
|
|
IF (UNIX)
|
2003-06-23 16:58:58 +04:00
|
|
|
TARGET_LINK_LIBRARIES(complex CMakeLib cmsys ${CMAKE_DL_LIBS})
|
2002-08-29 00:33:38 +04:00
|
|
|
ELSE(UNIX)
|
2003-06-23 16:58:58 +04:00
|
|
|
TARGET_LINK_LIBRARIES(complex CMakeLib cmsys)
|
2002-08-30 17:54:48 +04:00
|
|
|
IF (NOT BORLAND)
|
|
|
|
TARGET_LINK_LIBRARIES(complex rpcrt4.lib)
|
|
|
|
ENDIF(NOT BORLAND)
|
2002-08-29 00:33:38 +04:00
|
|
|
ENDIF (UNIX)
|
2002-08-22 23:58:22 +04:00
|
|
|
|
2002-12-14 01:35:00 +03:00
|
|
|
SET_SOURCE_FILES_PROPERTIES(complex
|
|
|
|
COMPILE_FLAGS "-DFILE_HAS_EXTRA_COMPILE_FLAGS"
|
|
|
|
OBJECT_DEPENDS ${Complex_BINARY_DIR}/cmTestGeneratedHeader.h
|
|
|
|
)
|
|
|
|
|
|
|
|
ADD_CUSTOM_COMMAND(
|
|
|
|
TARGET complex
|
|
|
|
SOURCE ${Complex_SOURCE_DIR}/cmTestGeneratedHeader.h.in
|
|
|
|
COMMAND ${CMAKE_COMMAND}
|
|
|
|
ARGS -E copy ${Complex_SOURCE_DIR}/cmTestGeneratedHeader.h.in
|
|
|
|
${Complex_BINARY_DIR}/cmTestGeneratedHeader.h
|
|
|
|
OUTPUTS ${Complex_BINARY_DIR}/cmTestGeneratedHeader.h
|
|
|
|
DEPENDS ${CMAKE_COMMAND}
|
|
|
|
)
|
|
|
|
|
2002-01-20 08:12:27 +03:00
|
|
|
#
|
|
|
|
# Output the files required by 'complex' to a file.
|
|
|
|
#
|
2002-01-22 21:30:06 +03:00
|
|
|
# This test has been moved to the 'required' subdir so that it
|
|
|
|
# has no side-effects on the current Makefile (duplicated source file
|
|
|
|
# due to source list expansion done twice).
|
|
|
|
#
|
2002-01-22 23:57:40 +03:00
|
|
|
SUBDIRS(Temp)
|
2002-01-20 08:12:27 +03:00
|
|
|
|
2002-01-19 04:32:06 +03:00
|
|
|
#
|
2002-01-20 05:24:55 +03:00
|
|
|
# Extra coverage.Not used.
|
2002-01-19 04:32:06 +03:00
|
|
|
#
|
2002-01-19 03:21:43 +03:00
|
|
|
INSTALL_TARGETS(/tmp complex)
|
|
|
|
INSTALL_PROGRAMS(/tmp complex)
|
2002-01-20 05:24:55 +03:00
|
|
|
|
2002-04-22 19:51:26 +04:00
|
|
|
CONFIGURE_FILE(
|
|
|
|
${Complex_SOURCE_DIR}/Executable/cmVersion.h.in
|
|
|
|
${Complex_BINARY_DIR}/cmVersion.h)
|
|
|
|
|
2002-01-20 05:24:55 +03:00
|
|
|
SOURCE_GROUP(A_GROUP ".cxx")
|