src/platform/qt/CMakeLists.txt (view raw)
1cmake_minimum_required(VERSION 2.8.8)
2project(QGBAc)
3
4set(CMAKE_CXX_FLAGS_DEBUG "-g -Wall -Wextra --std=c++11")
5set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -Wextra --std=c++11")
6
7if(APPLE)
8 set(CMAKE_PREFIX_PATH "/usr/local/opt/qt5") # Temporary stopgap measure
9endif()
10
11set(CMAKE_AUTOMOC ON)
12set(CMAKE_INCLUDE_CURRENT_DIR ON)
13
14find_package(Qt5Widgets REQUIRED)
15
16set(SOURCE_FILES AudioDevice.cpp Display.cpp GameController.cpp Window.cpp)
17
18add_executable(QGBAc WIN32 MACOSX_BUNDLE main.cpp ${SOURCE_FILES})
19
20qt5_use_modules(QGBAc Widgets Multimedia OpenGL)
21target_link_libraries(QGBAc ${OPENGL_LIBRARY} ${BINARY_NAME})