CMakeLists.txt 880 B

123456789101112131415161718192021222324252627282930313233
  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 14)
  7. SET(CMAKE_AUTOMOC ON)
  8. # FIXME: remove this once we export include directories for LMMS
  9. IF(LMMS_BUILD_APPLE)
  10. INCLUDE_DIRECTORIES("/usr/local/include")
  11. ENDIF()
  12. ADD_EXECUTABLE(tests
  13. EXCLUDE_FROM_ALL
  14. main.cpp
  15. QTestSuite
  16. $<TARGET_OBJECTS:lmmsobjs>
  17. src/core/AutomatableModelTest.cpp
  18. src/core/ProjectVersionTest.cpp
  19. src/core/RelativePathsTest.cpp
  20. src/tracks/AutomationTrackTest.cpp
  21. )
  22. TARGET_COMPILE_DEFINITIONS(tests
  23. PRIVATE $<TARGET_PROPERTY:lmmsobjs,INTERFACE_COMPILE_DEFINITIONS>
  24. )
  25. TARGET_LINK_LIBRARIES(tests ${QT_LIBRARIES} ${QT_QTTEST_LIBRARY})
  26. TARGET_LINK_LIBRARIES(tests ${LMMS_REQUIRED_LIBS})