2012-04-14 23:02:51 +00:00
|
|
|
set(SOURCES
|
2015-12-20 14:06:35 +00:00
|
|
|
CBotUtils.cpp
|
|
|
|
CBotFileUtils.cpp
|
|
|
|
CBotClass.cpp
|
|
|
|
CBotProgram.cpp
|
|
|
|
CBotStack.cpp
|
|
|
|
CBotCStack.cpp
|
|
|
|
CBotToken.cpp
|
|
|
|
CBotCall.cpp
|
|
|
|
CBotDefParam.cpp
|
|
|
|
CBotCallMethode.cpp
|
|
|
|
CBotTypResult.cpp
|
|
|
|
CBotInstr/CBotInstr.cpp
|
|
|
|
CBotInstr/CBotInstrUtils.cpp
|
|
|
|
CBotInstr/CBotWhile.cpp
|
|
|
|
CBotInstr/CBotDo.cpp
|
|
|
|
CBotInstr/CBotFor.cpp
|
|
|
|
CBotInstr/CBotListExpression.cpp
|
|
|
|
CBotInstr/CBotSwitch.cpp
|
|
|
|
CBotInstr/CBotCase.cpp
|
|
|
|
CBotInstr/CBotBreak.cpp
|
|
|
|
CBotInstr/CBotTry.cpp
|
|
|
|
CBotInstr/CBotCatch.cpp
|
|
|
|
CBotInstr/CBotThrow.cpp
|
|
|
|
CBotInstr/CBotExprAlpha.cpp
|
|
|
|
CBotInstr/CBotExprNum.cpp
|
|
|
|
CBotInstr/CBotNew.cpp
|
|
|
|
CBotInstr/CBotExprNan.cpp
|
|
|
|
CBotInstr/CBotExprNull.cpp
|
|
|
|
CBotInstr/CBotExprBool.cpp
|
|
|
|
CBotInstr/CBotLeftExprVar.cpp
|
|
|
|
CBotInstr/CBotPreIncExpr.cpp
|
|
|
|
CBotInstr/CBotPostIncExpr.cpp
|
|
|
|
CBotInstr/CBotExprVar.cpp
|
|
|
|
CBotInstr/CBotInstrMethode.cpp
|
|
|
|
CBotInstr/CBotInstrCall.cpp
|
|
|
|
CBotInstr/CBotListInstr.cpp
|
|
|
|
CBotInstr/CBotBlock.cpp
|
|
|
|
CBotInstr/CBotExprUnaire.cpp
|
|
|
|
CBotInstr/CBotParExpr.cpp
|
|
|
|
CBotInstr/CBotBoolExpr.cpp
|
|
|
|
CBotInstr/CBotLogicExpr.cpp
|
|
|
|
CBotInstr/CBotTwoOpExpr.cpp
|
|
|
|
CBotInstr/CBotExpression.cpp
|
|
|
|
CBotInstr/CBotIndexExpr.cpp
|
|
|
|
CBotInstr/CBotFieldExpr.cpp
|
|
|
|
CBotInstr/CBotLeftExpr.cpp
|
|
|
|
CBotInstr/CBotCondition.cpp
|
|
|
|
CBotInstr/CBotClassInst.cpp
|
|
|
|
CBotInstr/CBotIString.cpp
|
|
|
|
CBotInstr/CBotFloat.cpp
|
|
|
|
CBotInstr/CBotBoolean.cpp
|
|
|
|
CBotInstr/CBotEmpty.cpp
|
|
|
|
CBotInstr/CBotReturn.cpp
|
|
|
|
CBotInstr/CBotIf.cpp
|
|
|
|
CBotInstr/CBotListArray.cpp
|
|
|
|
CBotInstr/CBotInstArray.cpp
|
|
|
|
CBotInstr/CBotInt.cpp
|
|
|
|
CBotInstr/CBotFunction.cpp
|
|
|
|
CBotVar/CBotVarArray.cpp
|
|
|
|
CBotVar/CBotVarPointer.cpp
|
|
|
|
CBotVar/CBotVarClass.cpp
|
|
|
|
CBotVar/CBotVarBoolean.cpp
|
|
|
|
CBotVar/CBotVarString.cpp
|
|
|
|
CBotVar/CBotVarFloat.cpp
|
|
|
|
CBotVar/CBotVarInt.cpp
|
|
|
|
CBotVar/CBotVar.cpp
|
2015-12-20 17:35:52 +00:00
|
|
|
stdlib/FileFunctions.cpp
|
|
|
|
stdlib/StringFunctions.cpp
|
|
|
|
stdlib/MathFunctions.cpp
|
|
|
|
stdlib/Compilation.cpp
|
2015-12-20 15:19:10 +00:00
|
|
|
)
|
2012-04-14 23:02:51 +00:00
|
|
|
|
2015-11-08 17:29:02 +00:00
|
|
|
# Includes
|
|
|
|
set(LOCAL_INCLUDES
|
2015-11-23 20:59:56 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/..
|
2015-11-08 17:29:02 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(${LOCAL_INCLUDES})
|
|
|
|
|
|
|
|
|
2013-06-24 11:28:18 +00:00
|
|
|
if(CBOT_STATIC)
|
2012-09-29 15:19:23 +00:00
|
|
|
add_library(CBot STATIC ${SOURCES})
|
|
|
|
else()
|
|
|
|
add_library(CBot SHARED ${SOURCES})
|
2013-03-22 17:19:53 +00:00
|
|
|
install(TARGETS CBot LIBRARY
|
|
|
|
DESTINATION ${COLOBOT_INSTALL_LIB_DIR}
|
|
|
|
ARCHIVE DESTINATION ${COLOBOT_INSTALL_LIB_DIR}
|
|
|
|
RUNTIME DESTINATION ${COLOBOT_INSTALL_BIN_DIR})
|
2012-09-29 15:19:23 +00:00
|
|
|
endif()
|
2013-05-26 15:47:54 +00:00
|
|
|
|