1
0

Subdirs: Only add_library if not using MSVC

This commit is contained in:
archshift 2014-07-18 13:26:43 -07:00
parent 34c8ff7b24
commit 725d1fd1e2
13 changed files with 45 additions and 19 deletions

View File

@ -39,4 +39,6 @@ SET (HDRS
NoteEntity.h NoteEntity.h
SignEntity.h) SignEntity.h)
add_library(BlockEntities ${SRCS} ${HDRS}) if(NOT MSVC)
add_library(BlockEntities ${SRCS} ${HDRS})
endif()

View File

@ -96,4 +96,6 @@ SET (HDRS
MetaRotator.h MetaRotator.h
WorldInterface.h) WorldInterface.h)
add_library(Blocks ${SRCS} ${HDRS}) if(NOT MSVC)
add_library(Blocks ${SRCS} ${HDRS})
endif()

View File

@ -60,6 +60,8 @@ SET (HDRS
ThrownSnowballEntity.h ThrownSnowballEntity.h
WitherSkullEntity.h) WitherSkullEntity.h)
add_library(Entities ${SRCS} ${HDRS}) if(NOT MSVC)
add_library(Entities ${SRCS} ${HDRS})
target_link_libraries(Entities WorldStorage) target_link_libraries(Entities WorldStorage)
endif()

View File

@ -58,6 +58,8 @@ SET (HDRS
UnderwaterBaseGen.h UnderwaterBaseGen.h
VillageGen.h) VillageGen.h)
add_library(Generating ${SRCS} ${HDRS}) if(NOT MSVC)
add_library(Generating ${SRCS} ${HDRS})
target_link_libraries(Generating OSSupport iniFile Blocks) target_link_libraries(Generating OSSupport iniFile Blocks)
endif()

View File

@ -26,6 +26,8 @@ SET (HDRS
TestRailsPrefabs.h TestRailsPrefabs.h
UnderwaterBasePrefabs.h) UnderwaterBasePrefabs.h)
add_library(Generating_Prefabs ${SRCS} ${HDRS}) if(NOT MSVC)
add_library(Generating_Prefabs ${SRCS} ${HDRS})
target_link_libraries(Generating_Prefabs OSSupport iniFile Blocks) target_link_libraries(Generating_Prefabs OSSupport iniFile Blocks)
endif()

View File

@ -24,4 +24,6 @@ SET (HDRS
NameValueParser.h NameValueParser.h
SslHTTPConnection.h) SslHTTPConnection.h)
add_library(HTTPServer ${SRCS} ${HDRS}) if(NOT MSVC)
add_library(HTTPServer ${SRCS} ${HDRS})
endif()

View File

@ -51,4 +51,6 @@ SET (HDRS
ItemSword.h ItemSword.h
ItemThrowable.h) ItemThrowable.h)
add_library(Items ${SRCS} ${HDRS}) if(NOT MSVC)
add_library(Items ${SRCS} ${HDRS})
endif()

View File

@ -73,4 +73,6 @@ SET (HDRS
Zombie.h Zombie.h
ZombiePigman.h) ZombiePigman.h)
add_library(Mobs ${SRCS} ${HDRS}) if(NOT MSVC)
add_library(Mobs ${SRCS} ${HDRS})
endif()

View File

@ -35,8 +35,10 @@ SET (HDRS
Thread.h Thread.h
Timer.h) Timer.h)
add_library(OSSupport ${SRCS} ${HDRS}) if(NOT MSVC)
add_library(OSSupport ${SRCS} ${HDRS})
if(UNIX) if(UNIX)
target_link_libraries(OSSupport pthread) target_link_libraries(OSSupport pthread)
endif()
endif() endif()

View File

@ -27,4 +27,6 @@ SET (HDRS
Protocol17x.h Protocol17x.h
ProtocolRecognizer.h) ProtocolRecognizer.h)
add_library(Protocol ${SRCS} ${HDRS}) if(NOT MSVC)
add_library(Protocol ${SRCS} ${HDRS})
endif()

View File

@ -32,4 +32,6 @@ SET (HDRS
VanillaFluidSimulator.h VanillaFluidSimulator.h
VaporizeFluidSimulator.h) VaporizeFluidSimulator.h)
add_library(Simulator ${SRCS} ${HDRS}) if(NOT MSVC)
add_library(Simulator ${SRCS} ${HDRS})
endif()

View File

@ -13,4 +13,6 @@ SET (HDRS
Window.h Window.h
WindowOwner.h) WindowOwner.h)
add_library(UI ${SRCS} ${HDRS}) if(NOT MSVC)
add_library(UI ${SRCS} ${HDRS})
endif()

View File

@ -30,6 +30,8 @@ SET (HDRS
WSSCompact.h WSSCompact.h
WorldStorage.h) WorldStorage.h)
add_library(WorldStorage ${SRCS} ${HDRS}) if(NOT MSVC)
add_library(WorldStorage ${SRCS} ${HDRS})
target_link_libraries(WorldStorage OSSupport) target_link_libraries(WorldStorage OSSupport)
endif()