12345678910111213141516171819202122232425262728 |
- INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}")
- INCLUDE_DIRECTORIES("${CMAKE_CURRENT_BINARY_DIR}")
- INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/include")
- INCLUDE_DIRECTORIES("${CMAKE_BINARY_DIR}")
- INCLUDE_DIRECTORIES("${CMAKE_BINARY_DIR}/src")
- SET(CMAKE_CXX_STANDARD 11)
- SET(CMAKE_AUTOMOC ON)
- ADD_EXECUTABLE(tests
- EXCLUDE_FROM_ALL
- main.cpp
- QTestSuite
- $<TARGET_OBJECTS:lmmsobjs>
- src/core/AutomatableModelTest.cpp
- src/core/ProjectVersionTest.cpp
- src/core/RelativePathsTest.cpp
- src/tracks/AutomationTrackTest.cpp
- )
- TARGET_COMPILE_DEFINITIONS(tests
- PRIVATE $<TARGET_PROPERTY:lmmsobjs,INTERFACE_COMPILE_DEFINITIONS>
- )
- TARGET_LINK_LIBRARIES(tests ${QT_LIBRARIES} ${QT_QTTEST_LIBRARY})
- TARGET_LINK_LIBRARIES(tests ${LMMS_REQUIRED_LIBS})
|