CMakeLists.txt 743 B

12345678910111213141516171819202122232425262728
  1. INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}")
  2. INCLUDE_DIRECTORIES("${CMAKE_CURRENT_BINARY_DIR}")
  3. INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/include")
  4. INCLUDE_DIRECTORIES("${CMAKE_BINARY_DIR}")
  5. INCLUDE_DIRECTORIES("${CMAKE_BINARY_DIR}/src")
  6. SET(CMAKE_CXX_STANDARD 11)
  7. SET(CMAKE_AUTOMOC ON)
  8. ADD_EXECUTABLE(tests
  9. EXCLUDE_FROM_ALL
  10. main.cpp
  11. QTestSuite
  12. $<TARGET_OBJECTS:lmmsobjs>
  13. src/core/AutomatableModelTest.cpp
  14. src/core/ProjectVersionTest.cpp
  15. src/core/RelativePathsTest.cpp
  16. src/tracks/AutomationTrackTest.cpp
  17. )
  18. TARGET_COMPILE_DEFINITIONS(tests
  19. PRIVATE $<TARGET_PROPERTY:lmmsobjs,INTERFACE_COMPILE_DEFINITIONS>
  20. )
  21. TARGET_LINK_LIBRARIES(tests ${QT_LIBRARIES} ${QT_QTTEST_LIBRARY})
  22. TARGET_LINK_LIBRARIES(tests ${LMMS_REQUIRED_LIBS})