camitk_application(NEEDS_XSD
                   NEEDS_XERCESC
                   NEEDS_CEP_LIBRARIES cepgenerator cepcoreschema
                   CEP_NAME SDK
                   ADDITIONAL_SOURCES CommandLineOptions.cxx CommandLineOptions.hxx
                   DESCRIPTION "Create CEP and file skeletons from GUI"
)
set(CAMITK_WIZARD_DEBUG CACHE BOOL FALSE)

# If this variable is true, then the wizard's user control is squeezed. To quickly test the application. 
if (CAMITK_WIZARD_DEBUG)
    add_definitions(-D_WIZARD_QUESTIONS_SQUEEZE)
endif (CAMITK_WIZARD_DEBUG)
                      
#-----------------------------------------------------------------------------
# Testing the application be ran (no linkage error) + command-line robustness
#-----------------------------------------------------------------------------
set(TEST_BASENAME ${APPLICATION_TARGET_NAME})
camitk_init_test(${TEST_BASENAME})
# should pass because invoking testcomponents without arguments or with help arg shows usage and exit success
camitk_add_test(EXECUTABLE_ARGS "--help" PROJECT_NAME ${TEST_BASENAME} TEST_SUFFIX "-")
camitk_add_test(EXECUTABLE_ARGS "-h"     PROJECT_NAME ${TEST_BASENAME} TEST_SUFFIX "-")
