1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-04 09:42:40 +02:00
vcmi/AI/VCAI/CMakeLists.txt

68 lines
1.5 KiB
CMake
Raw Normal View History

if(FL_FOUND)
include_directories(${FL_INCLUDE_DIRS})
else()
include_directories(${CMAKE_HOME_DIRECTORY}/AI/FuzzyLite/fuzzylite)
endif()
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
StdInc.cpp
Pathfinding/AIPathfinderConfig.cpp
Pathfinding/AIPathfinder.cpp
Pathfinding/AINodeStorage.cpp
Pathfinding/PathfindingManager.cpp
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
BuildingManager.cpp
2018-07-30 01:39:47 +02:00
MapObjectsEvaluator.cpp
2018-08-10 18:27:57 +02:00
FuzzyEngines.cpp
FuzzyHelper.cpp
Goals.cpp
main.cpp
VCAI.cpp
)
set(VCAI_HEADERS
StdInc.h
Pathfinding/AIPathfinderConfig.h
Pathfinding/AIPathfinder.h
Pathfinding/AINodeStorage.h
Pathfinding/PathfindingManager.h
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
BuildingManager.h
2018-07-30 01:39:47 +02:00
MapObjectsEvaluator.h
2018-08-10 18:27:57 +02:00
FuzzyEngines.h
FuzzyHelper.h
Goals.h
VCAI.h
2012-07-01 17:27:41 +03: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
return()
endif()
add_library(VCAI SHARED ${VCAI_SRCS} ${VCAI_HEADERS})
if(FL_FOUND)
target_link_libraries(VCAI ${FL_LIBRARIES} vcmi)
else()
target_link_libraries(VCAI fl-static vcmi)
endif()
vcmi_set_output_dir(VCAI "AI")
set_target_properties(VCAI PROPERTIES ${PCH_PROPERTIES})
cotire(VCAI)
install(TARGETS VCAI RUNTIME DESTINATION ${AI_LIB_DIR} LIBRARY DESTINATION ${AI_LIB_DIR})