Merge branch 'fixes' into main/rendor-staging
[ryzomcore.git] / nel / src / ligo / CMakeLists.txt
blob39823c4d55b8baadd418fd581e273faf87e7b9d7
1 FILE(GLOB SRC *.cpp *.h)
2 FILE(GLOB HEADERS ../../include/nel/ligo/*.h)
4 NL_TARGET_LIB(nelligo ${HEADERS} ${SRC})
6 INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
8 TARGET_LINK_LIBRARIES(nelligo nelmisc)
9 NL_DEFAULT_PROPS(nelligo "NeL, Library: NeL Ligo")
10 NL_ADD_RUNTIME_FLAGS(nelligo)
12 NL_ADD_LIB_SUFFIX(nelligo)
14 ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
16 IF(WITH_PCH)
17   ADD_NATIVE_PRECOMPILED_HEADER(nelligo ${CMAKE_CURRENT_SOURCE_DIR}/stdligo.h ${CMAKE_CURRENT_SOURCE_DIR}/stdligo.cpp)
18 ENDIF()
20 NL_GEN_PC(nel-ligo.pc)
22 IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
23   INSTALL(TARGETS nelligo LIBRARY DESTINATION ${NL_LIB_PREFIX} ARCHIVE DESTINATION ${NL_LIB_PREFIX} COMPONENT libraries)
24 ENDIF()