summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
blob: 6b3d2e1ac5a8d08021507826b0ed8acd5fac9f5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
project(mossrose)

target_sources(mossrose PUBLIC
	${CMAKE_CURRENT_LIST_DIR}/mossrose.c
	${CMAKE_CURRENT_LIST_DIR}/channel.c
	${CMAKE_CURRENT_LIST_DIR}/sound.c
)

add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/load)


if (MOSSROSE_BUILD_TESTS)
	target_sources(test PUBLIC
		${CMAKE_CURRENT_LIST_DIR}/test/lily-test.c
		${CMAKE_CURRENT_LIST_DIR}/test/mossrose-test.c
		${CMAKE_CURRENT_LIST_DIR}/channel.test.c
		${CMAKE_CURRENT_LIST_DIR}/sound.test.c
	)
endif()