metaforce/assetnameparser/CMakeLists.txt

17 lines
477 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-10-11 22:57:05 +00:00
set(BUILD_TESTING OFF)
add_subdirectory(tinyxml2)
add_executable(assetnameparser "main.cpp")
include_directories(${LOGVISOR_INCLUDE_DIR})
set(AN_PARSER_LIBS "")
if (UNIX)
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})