CMakeLists.txt 892 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. ${Wrapping_BINARY_DIR}/../../Source/${CMAKE_CFG_INTDIR})
  13. # Specify the same one for debug/optimized to increase coverage
  14. TARGET_LINK_LIBRARIES(complex
  15. ${CMAKE_LIB}
  16. debug ${CMAKE_LIB}
  17. optimized ${CMAKE_LIB})
  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")