24 lines
490 B
CMake
24 lines
490 B
CMake
|
set(CMAKE_INCLUDE_CURRENT_DIRS ON)
|
||
|
set(CMAKE_AUTOMOC ON)
|
||
|
|
||
|
find_package(OpenGL REQUIRED)
|
||
|
find_package(epoxy REQUIRED)
|
||
|
find_package(X11 REQUIRED)
|
||
|
|
||
|
set(GAME_SRC
|
||
|
src/main.cpp
|
||
|
src/opengl.cpp
|
||
|
)
|
||
|
|
||
|
set(GAME_HEADERS
|
||
|
include/opengl.h
|
||
|
)
|
||
|
|
||
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||
|
include_directories(${OPENGL_INCLUDE_DIR})
|
||
|
|
||
|
add_executable(game ${GAME_SRC} ${GAME_HEADERS})
|
||
|
setup_target(game)
|
||
|
target_link_libraries(game X11 epoxy)
|