metaforce/assetnameparser/CMakeLists.txt

28 lines
931 B
CMake
Raw Normal View History

2017-11-14 04:54:47 +00:00
cmake_minimum_required(VERSION 3.10 FATAL_ERROR) # because of c++17
2018-12-31 05:01:42 +00:00
set(TINYXML_LIB_VERSION "5.0.1")
set(TINYXML_LIB_SOVERSION "5")
add_library(tinyxml2_static STATIC tinyxml2/tinyxml2.cpp tinyxml2/tinyxml2.h)
set_target_properties(tinyxml2_static PROPERTIES
COMPILE_DEFINITONS "TINYXML2_EXPORT"
VERSION "${TINYXML_LIB_VERSION}"
SOVERSION "${TINYXML_LIB_SOVERSION}")
set_target_properties( tinyxml2_static PROPERTIES OUTPUT_NAME tinyxml2 )
2019-02-18 05:47:46 +00:00
if (NOT MSVC)
set_target_properties( tinyxml2_static PROPERTIES COMPILE_FLAGS -Wno-implicit-fallthrough )
endif()
2018-12-31 05:01:42 +00:00
add_executable(assetnameparser "main.cpp")
include_directories(${LOGVISOR_INCLUDE_DIR})
set(AN_PARSER_LIBS "")
if (UNIX)
2019-02-18 05:47:46 +00:00
list(APPEND AN_PARSER_LIBS pthread)
if(UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "Linux")
list(APPEND AN_PARSER_LIBS dl)
endif()
endif()
2017-07-03 03:53:05 +00:00
target_link_libraries(assetnameparser tinyxml2_static logvisor ${AN_PARSER_LIBS})