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