25 lines
580 B
CMake
25 lines
580 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
project(tictactoe)
|
|
|
|
include_directories("lib/" "network/" "objects/")
|
|
|
|
set(SRC_GAME
|
|
ai.cpp
|
|
main.cpp
|
|
map.cpp
|
|
parse_args.cpp
|
|
version.cpp)
|
|
|
|
find_library(ALLEGRO_LIB NAMES allegro)
|
|
find_library(ALLEGRO_PRIMITIVES_LIB NAMES allegro_primitives)
|
|
find_library(ALLEGRO_DIALOG_LIB NAMES allegro_dialog)
|
|
find_library(ALLEGRO_IMAGE_LIB allegro_image)
|
|
|
|
add_executable(${PROJECT_NAME} ${SRC_GAME})
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
${ALLEGRO_LIB}
|
|
${ALLEGRO_PRIMITIVES_LIB}
|
|
${ALLEGRO_DIALOG_LIB}
|
|
${ALLEGRO_IMAGE_LIB})
|