CMakeLists.txt 1.0 KB

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