2012-09-22 15:10:15 +00:00
|
|
|
project(battleAI)
|
2012-09-13 23:42:11 +00:00
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
|
2012-12-01 06:30:52 +00:00
|
|
|
include_directories(${Boost_INCLUDE_DIRS} ${CMAKE_HOME_DIRECTORY} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_HOME_DIRECTORY}/lib)
|
2012-09-13 23:42:11 +00:00
|
|
|
|
2012-09-22 15:10:15 +00:00
|
|
|
set(battleAI_SRCS
|
|
|
|
BattleAI.cpp
|
2012-09-13 23:42:11 +00:00
|
|
|
main.cpp
|
|
|
|
)
|
|
|
|
|
2012-09-22 15:10:15 +00:00
|
|
|
add_library(BattleAI SHARED ${battleAI_SRCS})
|
|
|
|
target_link_libraries(BattleAI vcmi)
|
2012-10-05 12:38:17 +00:00
|
|
|
|
2012-12-01 06:30:52 +00:00
|
|
|
if (NOT APPLE) # Already inside vcmiclient bundle
|
|
|
|
install(TARGETS BattleAI DESTINATION ${AI_LIB_DIR})
|
|
|
|
endif()
|
2012-10-05 12:38:17 +00:00
|
|
|
|