-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
40 lines (34 loc) · 1.2 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
project(Construct)
cmake_minimum_required(VERSION 2.6)
# Include additional cmake files
include(cmake/configure.cmake)
# Set OpenGL
find_package(OpenGL REQUIRED)
find_package(SDL REQUIRED)
# Set Apple frameworks
find_library(CORESERVICES_LIBRARY CoreServices)
find_library(COREAUDIO_LIBRARY CoreAudio)
find_library(AUDIOUNIT_LIBRARY AudioUnit)
find_library(AUDIOTOOLBOX_LIBRARY AudioToolbox)
mark_as_advanced( CORESERVICES_LIBRARY
COREAUDIO_LIBRARY
AUDIOUNIT_LIBRARY
AUDIOTOOLBOX_LIBRARY)
set(EXTRA_LIBS ${CORESERVICES_LIBRARY}
${COREAUDIO_LIBRARY}
${AUDIOUNIT_LIBRARY}
${AUDIOTOOLBOX_LIBRARY})
if (CMAKE_HOST_APPLE)
set(DEP_SRCS "deps/SDLMain.m")
endif()
include_directories(. src)
add_subdirectory(src)
add_executable(Construct src/main.cpp
src/construct_app.h src/construct_app.cpp
${DEP_SRCS})
target_link_libraries(Construct ${EXTRA_LIBS}
${OPENGL_LIBRARIES}
${SDL_LIBRARY}
core
audiodrivers
frontend)