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