CMakeLists.txt 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #
  2. # Create exe.
  3. #
  4. ADD_EXECUTABLE(complex complex)
  5. SET(COMPLEX_LIBS CMakeTestLibrary;CMakeTestLibraryShared)
  6. TARGET_LINK_LIBRARIES(complex ${COMPLEX_LIBS})
  7. #
  8. # Link to CMake lib
  9. #
  10. FIND_LIBRARY(CMAKE_LIB
  11. CMakeLib
  12. ${Complex_BINARY_DIR}/../../Source
  13. ${Complex_BINARY_DIR}/../../Source/Debug
  14. ${Complex_BINARY_DIR}/../../Source/Release
  15. ${Complex_BINARY_DIR}/../../Source/MinSizeRel
  16. ${Complex_BINARY_DIR}/../../Source/RelWithDebInfo)
  17. # Specify the same one for debug/optimized to increase coverage
  18. TARGET_LINK_LIBRARIES(complex
  19. ${CMAKE_LIB}
  20. debug ${CMAKE_LIB}
  21. optimized ${CMAKE_LIB})
  22. #
  23. # Output the files required by 'complex' to a file.
  24. #
  25. # This test has been moved to the 'required' subdir so that it
  26. # has no side-effects on the current Makefile (duplicated source file
  27. # due to source list expansion done twice).
  28. #
  29. SUBDIRS(Temp)
  30. #
  31. # Extra coverage.Not used.
  32. #
  33. INSTALL_TARGETS(/tmp complex)
  34. INSTALL_PROGRAMS(/tmp complex)
  35. SOURCE_GROUP(A_GROUP ".cxx")