mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2024-12-11 13:11:47 +00:00
21 lines
656 B
Text
21 lines
656 B
Text
|
|
||
|
add_definitions(-D__IDLIB__ -D__DOOM_DLL__)
|
||
|
|
||
|
file(GLOB_RECURSE ID_INCLUDES *.h)
|
||
|
file(GLOB_RECURSE ID_SOURCES *.cpp)
|
||
|
|
||
|
if(MSVC)
|
||
|
list(REMOVE_ITEM ID_INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}/math/Simd_AltiVec.h)
|
||
|
list(REMOVE_ITEM ID_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/math/Simd_AltiVec.cpp)
|
||
|
list(REMOVE_ITEM ID_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/bv/Frustum_gcc.cpp)
|
||
|
elseif(NOT APPLE)
|
||
|
list(REMOVE_ITEM ID_INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}/math/Simd_AltiVec.h)
|
||
|
list(REMOVE_ITEM ID_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/math/Simd_AltiVec.cpp)
|
||
|
endif()
|
||
|
|
||
|
#if(STANDALONE)
|
||
|
# add_definitions(-DSTANDALONE)
|
||
|
#endif()
|
||
|
|
||
|
add_library(idlib ${ID_SOURCES} ${ID_INCLUDES})
|