-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
63 lines (48 loc) · 1.65 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# © 2019 Joseph Cameron - All Rights Reserved
cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/jfc-cmake/jfclib.cmake")
project(null)
option(JFC_BUILD_DEMO "Build the demo" ON)
option(JFC_BUILD_DOCS "Build documentation" ON)
option(JFC_BUILD_TESTS "Build unit tests" ON)
add_subdirectory(thirdparty)
jfc_project(library
NAME "gdkaudio"
VERSION 0.0
DESCRIPTION "game development kit graphics lib"
C++_STANDARD 17
C_STANDARD 99
TYPE STATIC
PUBLIC_INCLUDE_DIRECTORIES
${CMAKE_CURRENT_SOURCE_DIR}/include/
${gdkmath_INCLUDE_DIRECTORIES}
PRIVATE_INCLUDE_DIRECTORIES
${CMAKE_CURRENT_SOURCE_DIR}/src/include
${CMAKE_CURRENT_SOURCE_DIR}/impl/openal/include
${OpenAL_INCLUDE_DIR}
${jfc-smart_handles_INCLUDE_DIRECTORIES}
LIBRARIES
${OpenAL_LIBRARIES}
${gdkmath_LIBRARIES}
DEPENDENCIES
"gdkmath"
"OpenAL"
SOURCE_LIST
${CMAKE_CURRENT_SOURCE_DIR}/impl/openal/src/openal_sound.cpp
${CMAKE_CURRENT_SOURCE_DIR}/impl/openal/src/openal_context.cpp
${CMAKE_CURRENT_SOURCE_DIR}/impl/openal/src/openal_emitter.cpp
${CMAKE_CURRENT_SOURCE_DIR}/impl/openal/src/openal_simple_emitter.cpp
${CMAKE_CURRENT_SOURCE_DIR}/impl/openal/src/openal_stream_emitter.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/context.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/emitter.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/stb_vorbis.c
)
if (JFC_BUILD_DEMO)
add_subdirectory(demo)
endif()
if (JFC_BUILD_TESTS)
#add_subdirectory(test)
endif()
if (JFC_BUILD_DOCS)
#add_subdirectory(docs)
endif()