mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-30 07:35:59 +00:00
22 lines
762 B
CMake
22 lines
762 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 "/NODEFAULTLIB:libcmt"
|
|
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)
|