blob: 6785ca15bb2ae366f0a4e9b5c078ff4111c36886 (
plain) (
blame)
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
|
option(BUILD_DUMB "Disable sound support" OFF)
find_package(PkgConfig REQUIRED)
find_package(GLEW REQUIRED)
find_package(OpenAL REQUIRED)
pkg_search_module(GLFW REQUIRED glfw3)
set (SMELT_GLFW_CPP_FILES
gfx_glfw.cpp
sfx_oal.cpp
inp_glfw.cpp
sys_glfw.cpp
)
include_directories(
${GLFW_INCLUDE_DIRS}
${GLEW_INCLUDE_DIRS}
)
add_library(smelt STATIC ${SMELT_GLFW_CPP_FILES})
if (BUILD_DUMB)
message (STATUS "")
message (STATUS "BUILD_DUMB build option enabled")
message (STATUS "")
target_compile_definitions(smelt PRIVATE
ENABLE_DUMB
)
endif ()
|