mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-19 21:56:13 +00:00
23 lines
827 B
CMake
23 lines
827 B
CMake
FILE(GLOB SRC *.cpp *.h)
|
|
|
|
DECORATE_NEL_LIB("nelmisc")
|
|
SET(NLMISC_LIB ${LIBNAME})
|
|
DECORATE_NEL_LIB("nelnet")
|
|
SET(NLNET_LIB ${LIBNAME})
|
|
DECORATE_NEL_LIB("nelligo")
|
|
SET(NLLIGO_LIB ${LIBNAME})
|
|
|
|
ADD_EXECUTABLE(nel_unit_test ${SRC})
|
|
|
|
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${CPPTEST_INCLUDE_DIR})
|
|
TARGET_LINK_LIBRARIES(nel_unit_test ${LIBXML2_LIBRARIES} ${CPPTEST_LIBRARY} ${PLATFORM_LINKFLAGS} nelmisc nelnet nelligo)
|
|
IF(WIN32)
|
|
SET_TARGET_PROPERTIES(nel_unit_test PROPERTIES
|
|
LINK_FLAGS_DEBUG "${CMAKE_LINK_FLAGS_DEBUG}"
|
|
LINK_FLAGS_RELEASE "${CMAKE_LINK_FLAGS_RELEASE}"
|
|
PROJECT_LABEL "Unit Tests")
|
|
ENDIF(WIN32)
|
|
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
|
ADD_DEFINITIONS(-DNEL_UNIT_BASE="\\"${PROJECT_SOURCE_DIR}/tools/nel_unit_test/\\"")
|
|
|
|
INSTALL(TARGETS nel_unit_test RUNTIME DESTINATION bin)
|