mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 17:05:46 -04:00
dep: Add tinyxml2
This commit is contained in:
14
dep/tinyxml2/CMakeLists.txt
Normal file
14
dep/tinyxml2/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
set(SRCS
|
||||
include/tinyxml2.h
|
||||
src/tinyxml2.cpp
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
add_library(tinyxml2 SHARED ${SRCS})
|
||||
target_include_directories(tinyxml2 PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||
target_compile_definitions(tinyxml2 PRIVATE "TINYXML2_EXPORT")
|
||||
target_compile_definitions(tinyxml2 INTERFACE "TINYXML2_IMPORT")
|
||||
else()
|
||||
add_library(tinyxml2 ${SRCS})
|
||||
target_include_directories(tinyxml2 PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||
endif()
|
Reference in New Issue
Block a user