Browse Source

Updated CMake

DJWarmonger 7 years ago
parent
commit
301565b315
2 changed files with 17 additions and 0 deletions
  1. 4 0
      AI/VCAI/CMakeLists.txt
  2. 13 0
      test/CMakeLists.txt

+ 4 - 0
AI/VCAI/CMakeLists.txt

@@ -9,6 +9,8 @@ set(VCAI_SRCS
 		StdInc.cpp
 
 		AIUtility.cpp
+		AIhelper.cpp
+		ResourceManager.cpp
 		Fuzzy.cpp
 		Goals.cpp
 		main.cpp
@@ -19,6 +21,8 @@ set(VCAI_HEADERS
 		StdInc.h
 
 		AIUtility.h
+		AIhelper.h
+		ResourceManager.h
 		Fuzzy.h
 		Goals.h
 		VCAI.h

+ 13 - 0
test/CMakeLists.txt

@@ -59,10 +59,15 @@ set(test_SRCS
  		spells/targetConditions/ReceptiveFeatureConditionTest.cpp
  		spells/targetConditions/SpellEffectConditionTest.cpp
  		spells/targetConditions/TargetConditionItemFixture.cpp
+		
+		vcai/mock_ResourceManager.cpp
+		vcai/mock_VCAI.cpp
+		vcai/ResurceManagerTest.cpp
 
  		mock/mock_IGameCallback.cpp
  		mock/mock_MapService.cpp
  		mock/mock_BonusBearer.cpp
+		mock/mock_CPSICallback.cpp
 )
 
 set(test_HEADERS
@@ -76,11 +81,14 @@ set(test_HEADERS
 		spells/effects/EffectFixture.h
 
 		spells/targetConditions/TargetConditionItemFixture.h
+		
+		vcai/ResourceManagerTest.h
 
 		mock/mock_BonusBearer.h
  		mock/mock_IGameCallback.h
  		mock/mock_MapService.h
 		mock/mock_BonusBearer.h
+		
 )
 
 assign_source_group(${test_SRCS} ${test_HEADERS})
@@ -94,6 +102,11 @@ set(mock_HEADERS
 		mock/mock_spells_Problem.h
 		mock/mock_spells_Spell.h
 		mock/mock_vstd_RNG.h
+		mock/mock_CPSICallback.h
+		
+		vcai/mock_ResourceManager.h
+		vcai/mock_VCAI.h
+		vcai/mock_VCAI_CGoal.h
 )
 
 add_subdirectory_with_folder("3rdparty" googletest EXCLUDE_FROM_ALL)