Subdirs: Only add_library if not using MSVC
This commit is contained in:
parent
34c8ff7b24
commit
725d1fd1e2
@ -39,4 +39,6 @@ SET (HDRS
|
||||
NoteEntity.h
|
||||
SignEntity.h)
|
||||
|
||||
if(NOT MSVC)
|
||||
add_library(BlockEntities ${SRCS} ${HDRS})
|
||||
endif()
|
||||
|
@ -96,4 +96,6 @@ SET (HDRS
|
||||
MetaRotator.h
|
||||
WorldInterface.h)
|
||||
|
||||
if(NOT MSVC)
|
||||
add_library(Blocks ${SRCS} ${HDRS})
|
||||
endif()
|
||||
|
@ -60,6 +60,8 @@ SET (HDRS
|
||||
ThrownSnowballEntity.h
|
||||
WitherSkullEntity.h)
|
||||
|
||||
if(NOT MSVC)
|
||||
add_library(Entities ${SRCS} ${HDRS})
|
||||
|
||||
target_link_libraries(Entities WorldStorage)
|
||||
endif()
|
||||
|
@ -58,6 +58,8 @@ SET (HDRS
|
||||
UnderwaterBaseGen.h
|
||||
VillageGen.h)
|
||||
|
||||
if(NOT MSVC)
|
||||
add_library(Generating ${SRCS} ${HDRS})
|
||||
|
||||
target_link_libraries(Generating OSSupport iniFile Blocks)
|
||||
endif()
|
||||
|
@ -26,6 +26,8 @@ SET (HDRS
|
||||
TestRailsPrefabs.h
|
||||
UnderwaterBasePrefabs.h)
|
||||
|
||||
if(NOT MSVC)
|
||||
add_library(Generating_Prefabs ${SRCS} ${HDRS})
|
||||
|
||||
target_link_libraries(Generating_Prefabs OSSupport iniFile Blocks)
|
||||
endif()
|
||||
|
@ -24,4 +24,6 @@ SET (HDRS
|
||||
NameValueParser.h
|
||||
SslHTTPConnection.h)
|
||||
|
||||
if(NOT MSVC)
|
||||
add_library(HTTPServer ${SRCS} ${HDRS})
|
||||
endif()
|
||||
|
@ -51,4 +51,6 @@ SET (HDRS
|
||||
ItemSword.h
|
||||
ItemThrowable.h)
|
||||
|
||||
if(NOT MSVC)
|
||||
add_library(Items ${SRCS} ${HDRS})
|
||||
endif()
|
||||
|
@ -73,4 +73,6 @@ SET (HDRS
|
||||
Zombie.h
|
||||
ZombiePigman.h)
|
||||
|
||||
if(NOT MSVC)
|
||||
add_library(Mobs ${SRCS} ${HDRS})
|
||||
endif()
|
||||
|
@ -35,8 +35,10 @@ SET (HDRS
|
||||
Thread.h
|
||||
Timer.h)
|
||||
|
||||
if(NOT MSVC)
|
||||
add_library(OSSupport ${SRCS} ${HDRS})
|
||||
|
||||
if(UNIX)
|
||||
target_link_libraries(OSSupport pthread)
|
||||
endif()
|
||||
endif()
|
||||
|
@ -27,4 +27,6 @@ SET (HDRS
|
||||
Protocol17x.h
|
||||
ProtocolRecognizer.h)
|
||||
|
||||
if(NOT MSVC)
|
||||
add_library(Protocol ${SRCS} ${HDRS})
|
||||
endif()
|
||||
|
@ -32,4 +32,6 @@ SET (HDRS
|
||||
VanillaFluidSimulator.h
|
||||
VaporizeFluidSimulator.h)
|
||||
|
||||
if(NOT MSVC)
|
||||
add_library(Simulator ${SRCS} ${HDRS})
|
||||
endif()
|
||||
|
@ -13,4 +13,6 @@ SET (HDRS
|
||||
Window.h
|
||||
WindowOwner.h)
|
||||
|
||||
if(NOT MSVC)
|
||||
add_library(UI ${SRCS} ${HDRS})
|
||||
endif()
|
||||
|
@ -30,6 +30,8 @@ SET (HDRS
|
||||
WSSCompact.h
|
||||
WorldStorage.h)
|
||||
|
||||
if(NOT MSVC)
|
||||
add_library(WorldStorage ${SRCS} ${HDRS})
|
||||
|
||||
target_link_libraries(WorldStorage OSSupport)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user