You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
471 B
15 lines
471 B
cmake_minimum_required(VERSION 3.10)
|
|
project(TestFindIntl CXX)
|
|
include(CTest)
|
|
|
|
find_package(Intl REQUIRED)
|
|
|
|
add_executable(test_intl_tgt main.cxx)
|
|
target_link_libraries(test_intl_tgt Intl::Intl)
|
|
add_test(NAME test_intl_tgt COMMAND test_intl_tgt)
|
|
|
|
add_executable(test_intl_var main.cxx)
|
|
target_include_directories(test_intl_var PRIVATE ${Intl_INCLUDE_DIRS})
|
|
target_link_libraries(test_intl_var PRIVATE ${Intl_LIBRARIES})
|
|
add_test(NAME test_intl_var COMMAND test_intl_var)
|