CMake/Tests/ComplexRelativePaths/Executable/CMakeLists.txt

42 lines
1.2 KiB
CMake
Raw Normal View History

#
# Create exe.
#
2001-08-23 21:57:45 +04:00
ADD_EXECUTABLE(complex complex)
2002-01-19 03:21:43 +03:00
2001-08-23 21:57:45 +04:00
TARGET_LINK_LIBRARIES(complex CMakeTestLibrary)
TARGET_LINK_LIBRARIES(complex CMakeTestLibraryShared)
#
# Link to CMake lib
#
2002-01-19 03:21:43 +03: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 09:58:57 +03: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-19 03:21:43 +03:00
2002-01-20 08:12:27 +03:00
#
# Output the files required by 'complex' to a file.
# The 'complex' executable will then test if this file exists and remove it.
# The contents of this file is not tested (absolute paths).
#
#OUTPUT_REQUIRED_FILES(${Complex_SOURCE_DIR}/Executable/complex.cxx
# ${Complex_BINARY_DIR}/Executable/complex-required.txt)
2002-01-19 04:32:06 +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)
SOURCE_GROUP(A_GROUP ".cxx")
2002-01-20 08:12:27 +03:00