CMakeLists.txt 901 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )

include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/.. )

########### next target ###############

include(ECMAddTests)

ecm_add_test(
    simpleipv6test.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/../libs/editor/simpleipv6addressvalidator.cpp
    TEST_NAME simpleipv6test
    LINK_LIBRARIES Qt5::Test  Qt5::Widgets
)

ecm_add_test(
    simpleipv4test.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/../libs/editor/simpleipv4addressvalidator.cpp
    TEST_NAME simpleipv4test
    LINK_LIBRARIES Qt5::Test  Qt5::Widgets
)

ecm_add_test(
    simpleiplisttest.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/../libs/editor/simpleipv4addressvalidator.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/../libs/editor/simpleipv6addressvalidator.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/../libs/editor/simpleiplistvalidator.cpp
    TEST_NAME simpleiplisttest
    LINK_LIBRARIES Qt5::Test  Qt5::Widgets
)