2017-08-15 20:17:00 +02:00
|
|
|
if(FL_FOUND)
|
|
|
|
include_directories(${FL_INCLUDE_DIRS})
|
2014-09-02 16:29:28 +03:00
|
|
|
else()
|
2017-08-15 20:17:00 +02:00
|
|
|
include_directories(${CMAKE_HOME_DIRECTORY}/AI/FuzzyLite/fuzzylite)
|
2014-09-02 16:29:28 +03:00
|
|
|
endif()
|
2016-10-23 16:56:53 +02:00
|
|
|
include_directories(${Boost_INCLUDE_DIRS} ${CMAKE_HOME_DIRECTORY} ${CMAKE_HOME_DIRECTORY}/include ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_HOME_DIRECTORY}/lib)
|
2012-07-01 17:27:41 +03:00
|
|
|
|
|
|
|
set(VCAI_SRCS
|
2017-06-29 01:03:37 +02:00
|
|
|
StdInc.cpp
|
|
|
|
|
2018-08-12 13:31:31 +02:00
|
|
|
Pathfinding/AIPathfinderConfig.cpp
|
|
|
|
Pathfinding/AIPathfinder.cpp
|
|
|
|
Pathfinding/AINodeStorage.cpp
|
2018-10-07 13:51:27 +02:00
|
|
|
Pathfinding/PathfindingManager.cpp
|
2017-06-29 01:03:37 +02:00
|
|
|
AIUtility.cpp
|
2018-07-27 06:44:10 +02:00
|
|
|
AIhelper.cpp
|
|
|
|
ResourceManager.cpp
|
2018-07-29 18:27:21 +02:00
|
|
|
BuildingManager.cpp
|
2018-08-04 22:00:28 +02:00
|
|
|
SectorMap.cpp
|
2018-08-04 16:03:18 +02:00
|
|
|
BuildingManager.cpp
|
2018-07-30 01:39:47 +02:00
|
|
|
MapObjectsEvaluator.cpp
|
2018-08-10 18:27:57 +02:00
|
|
|
FuzzyEngines.cpp
|
|
|
|
FuzzyHelper.cpp
|
2017-06-29 01:03:37 +02:00
|
|
|
Goals.cpp
|
|
|
|
main.cpp
|
|
|
|
VCAI.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(VCAI_HEADERS
|
|
|
|
StdInc.h
|
2018-08-12 13:31:31 +02:00
|
|
|
|
|
|
|
Pathfinding/AIPathfinderConfig.h
|
|
|
|
Pathfinding/AIPathfinder.h
|
|
|
|
Pathfinding/AINodeStorage.h
|
2018-10-07 13:51:27 +02:00
|
|
|
Pathfinding/PathfindingManager.h
|
2017-06-29 01:03:37 +02:00
|
|
|
AIUtility.h
|
2018-07-27 06:44:10 +02:00
|
|
|
AIhelper.h
|
|
|
|
ResourceManager.h
|
2018-07-29 18:27:21 +02:00
|
|
|
BuildingManager.h
|
2018-08-04 22:00:28 +02:00
|
|
|
SectorMap.h
|
2018-08-04 16:03:18 +02:00
|
|
|
BuildingManager.h
|
2018-07-30 01:39:47 +02:00
|
|
|
MapObjectsEvaluator.h
|
2018-08-10 18:27:57 +02:00
|
|
|
FuzzyEngines.h
|
|
|
|
FuzzyHelper.h
|
2017-06-29 01:03:37 +02:00
|
|
|
Goals.h
|
|
|
|
VCAI.h
|
2012-07-01 17:27:41 +03:00
|
|
|
)
|
|
|
|
|
2017-08-15 20:17:00 +02:00
|
|
|
assign_source_group(${VCAI_SRCS} ${VCAI_HEADERS})
|
|
|
|
|
|
|
|
if(ANDROID) # android compiles ai libs into main lib directly, so we skip this library and just reuse sources list
|
2017-05-25 19:57:20 +02:00
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2017-06-29 01:03:37 +02:00
|
|
|
add_library(VCAI SHARED ${VCAI_SRCS} ${VCAI_HEADERS})
|
2017-08-12 20:58:09 +02:00
|
|
|
if(FL_FOUND)
|
2017-05-25 19:57:20 +02:00
|
|
|
target_link_libraries(VCAI ${FL_LIBRARIES} vcmi)
|
2014-09-02 16:29:28 +03:00
|
|
|
else()
|
2017-05-25 19:57:20 +02:00
|
|
|
target_link_libraries(VCAI fl-static vcmi)
|
2014-09-02 16:29:28 +03:00
|
|
|
endif()
|
2012-10-05 15:38:17 +03:00
|
|
|
|
2017-07-04 22:46:49 +02:00
|
|
|
vcmi_set_output_dir(VCAI "AI")
|
|
|
|
|
2014-02-05 23:25:36 +03:00
|
|
|
set_target_properties(VCAI PROPERTIES ${PCH_PROPERTIES})
|
|
|
|
cotire(VCAI)
|
2014-02-01 16:37:26 +03:00
|
|
|
|
2017-08-12 20:58:09 +02:00
|
|
|
install(TARGETS VCAI RUNTIME DESTINATION ${AI_LIB_DIR} LIBRARY DESTINATION ${AI_LIB_DIR})
|