CMakeLists.txt 926 B

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