CMakeLists.txt 1023 Bytes
Newer Older
lorensen's avatar
lorensen committed
1
2
3
4
Project(ModuleDescriptionParserTesting)

SET ( PARSER1TEST_SOURCE Parser1Test )
ADD_EXECUTABLE ( Parser1Test ${PARSER1TEST_SOURCE})
lorensen's avatar
lorensen committed
5
6
7
8
9
TARGET_LINK_LIBRARIES ( Parser1Test ModuleDescriptionParser )

SET ( ModuleFactoryTest_SOURCE ModuleFactoryTest )
ADD_EXECUTABLE ( ModuleFactoryTest ${ModuleFactoryTest_SOURCE})
TARGET_LINK_LIBRARIES ( ModuleFactoryTest ModuleDescriptionParser )
lorensen's avatar
lorensen committed
10
11
12
13
14

INCLUDE_DIRECTORIES(
  ${ModuleDescriptionParser_SOURCE_DIR}
  )

15
16
17
18
19
SET( EXE_PREFIX ${EXECUTABLE_OUTPUT_PATH} )
IF (WIN32)
  SET( EXE_PREFIX ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_BUILD_TYPE})
ENDIF (WIN32)

lorensen's avatar
lorensen committed
20
SET (TEST_DATA ${ModuleDescriptionParserTesting_SOURCE_DIR}/TestData)
21
ADD_TEST(Parser1Test1 ${LAUNCH_EXE} ${EXE_PREFIX}/Parser1Test ${TEST_DATA}/ParserTest1.xml)
lorensen's avatar
lorensen committed
22

23
ADD_TEST(Parser1Test2 ${LAUNCH_EXE} ${EXE_PREFIX}/Parser1Test ${TEST_DATA}/ParserTest2.xml)
lorensen's avatar
lorensen committed
24

25
IF(Slicer3_BINARY_DIR)
26
ADD_TEST(ModuleFactoryTest ${LAUNCH_EXE} ${EXE_PREFIX}/ModuleFactoryTest ${Slicer3_BINARY_DIR}/${SLICER_INSTALL_LIBRARIES_DIR}/Plugins/)
27
ENDIF(Slicer3_BINARY_DIR)
lorensen's avatar
lorensen committed
28