-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
28 lines (22 loc) · 900 Bytes
/
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
cmake_minimum_required(VERSION 2.8.9)
project (console)
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "./CMake")
find_package (OpenGL REQUIRED)
include_directories (${OPENGL_INCLUDE_DIRS})
# The below needs to be fixed for Windows compilation.
#
# Define SDL2_INCLUDE_DIRS manually, and point SDL2_LIBRARY to SDL2.lib and
# SDL2main.lib. The project may need to be edited.
find_package (SDL2 REQUIRED)
include_directories (${SDL2_INCLUDE_DIRS})
# The below needs to be fixed for Windows compilation.
#
# Define FREETYPE_INCLUDE_DIRS manually, and point FREETYPE_LIBRARIES to
# freetyped.lib.
#find_package (Freetype REQUIRED)
include_directories (${FREETYPE_INCLUDE_DIRS})
set (SOURCES console.cc)
add_executable (${PROJECT_NAME} ${SOURCES})
target_link_libraries (console ${OPENGL_LIBRARIES})
target_link_libraries (console ${SDL2_LIBRARY})
target_link_libraries (console ${FREETYPE_LIBRARIES})