summaryrefslogtreecommitdiffstats
path: root/Tests/FindIntl/Test/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-12-02 13:21:12 (GMT)
committerBrad King <brad.king@kitware.com>2020-12-02 13:21:12 (GMT)
commitbdfa5ac7f6cfc961665064f1b7a1395cfd0b2281 (patch)
tree9f9c8f4ef0db863fb6adc0ae70891477d66d1cdb /Tests/FindIntl/Test/CMakeLists.txt
parentf7ff0d34f0750387f5c56483ab6ba3fb4825b62d (diff)
parent628d7ef67258f67e0b4086905011d90727d8b9a1 (diff)
downloadCMake-bdfa5ac7f6cfc961665064f1b7a1395cfd0b2281.zip
CMake-bdfa5ac7f6cfc961665064f1b7a1395cfd0b2281.tar.gz
CMake-bdfa5ac7f6cfc961665064f1b7a1395cfd0b2281.tar.bz2
Merge branch 'master' into llvm-rc-preprocess-as-c
Diffstat (limited to 'Tests/FindIntl/Test/CMakeLists.txt')
-rw-r--r--Tests/FindIntl/Test/CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/FindIntl/Test/CMakeLists.txt b/Tests/FindIntl/Test/CMakeLists.txt
new file mode 100644
index 0000000..5140406
--- /dev/null
+++ b/Tests/FindIntl/Test/CMakeLists.txt
@@ -0,0 +1,14 @@
+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)