CMake/Tests/Complex/Executable/CMakeLists.txt

43 lines
1.1 KiB
CMake
Raw Normal View History

#
# Create exe.
#
2001-08-23 13:57:45 -04:00
ADD_EXECUTABLE(complex complex)
2002-01-18 19:21:43 -05:00
2001-08-23 13:57:45 -04:00
TARGET_LINK_LIBRARIES(complex CMakeTestLibrary)
TARGET_LINK_LIBRARIES(complex CMakeTestLibraryShared)
#
# Link to CMake lib
#
2002-01-18 19:21:43 -05:00
FIND_LIBRARY(CMAKE_LIB
CMakeLib
${Complex_BINARY_DIR}/../../Source
${Complex_BINARY_DIR}/../../Source/Debug
${Complex_BINARY_DIR}/../../Source/Release
${Complex_BINARY_DIR}/../../Source/MinSizeRel
${Complex_BINARY_DIR}/../../Source/RelWithDebInfo)
2002-01-20 01:58:57 -05:00
# Specify the same one for debug/optimized to increase coverage
TARGET_LINK_LIBRARIES(complex
${CMAKE_LIB}
debug ${CMAKE_LIB}
optimized ${CMAKE_LIB})
2002-01-18 19:21:43 -05:00
2002-01-20 00:12:27 -05:00
#
# Output the files required by 'complex' to a file.
#
2002-01-22 13:30:06 -05: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 15:57:40 -05:00
SUBDIRS(Temp)
2002-01-20 00:12:27 -05:00
2002-01-18 20:32:06 -05:00
#
# Extra coverage.Not used.
2002-01-18 20:32:06 -05:00
#
2002-01-18 19:21:43 -05:00
INSTALL_TARGETS(/tmp complex)
INSTALL_PROGRAMS(/tmp complex)
SOURCE_GROUP(A_GROUP ".cxx")
2002-01-20 00:12:27 -05:00