tictactoe/game/CMakeLists.txt

24 lines
564 B
CMake
Raw Normal View History

2023-04-30 21:30:15 +00:00
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)
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})