1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
cmake_minimum_required (VERSION 2.6) project (MCServer) include_directories ("${PROJECT_SOURCE_DIR}/../") SET (SRCS AIComponent.cpp AttackComponent.cpp EnvironmentComponent.cpp MovementComponent.cpp) SET (HDRS AIComponent.h AttackComponent.h EnvironmentComponent.h MovementComponent.h) if(NOT MSVC) add_library(Components ${SRCS} ${HDRS}) endif()