summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDaniel Wolbach <daniel.wolbach@mailo.com>2020-10-09 21:47:02 +0200
committerDavid Peter <sharkdp@users.noreply.github.com>2020-10-09 22:50:47 +0200
commit06d0c8f0565f8ad9bd4d78df1a33500e1178abf4 (patch)
treeabf122928ceb8e22fb50b62fccdff14a306e640a /tests
parent4064b8ff145521c06989f122d9491385ad7dbb6f (diff)
add CMake syntax highlighting test
Diffstat (limited to 'tests')
-rw-r--r--tests/syntax-tests/highlighted/CMake/CMakeLists.txt16
-rw-r--r--tests/syntax-tests/source/CMake/CMakeLists.txt16
2 files changed, 32 insertions, 0 deletions
diff --git a/tests/syntax-tests/highlighted/CMake/CMakeLists.txt b/tests/syntax-tests/highlighted/CMake/CMakeLists.txt
new file mode 100644
index 00000000..e4f9e4cc
--- /dev/null
+++ b/tests/syntax-tests/highlighted/CMake/CMakeLists.txt
@@ -0,0 +1,16 @@
+# This is a file for testing syntax highlighting.
+cmake_minimum_required(VERSION 3.13)
+project(hello-bat VERSION 0.0.1 LANGUAGES C)
+
+set(SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src/")
+file(GLOB_RECURSE SOURCES "${SOURCE_DIR}/*.c")
+
+add_executable(hello-bat SOURCES)
+
+find_package(assimp CONFIG)
+target_link_libraries(hello-bat assimp)
+
+option("ENABLE_TESTS" OFF)
+if(ENABLE_TESTS)
+ add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/tests/")
+endif()
diff --git a/tests/syntax-tests/source/CMake/CMakeLists.txt b/tests/syntax-tests/source/CMake/CMakeLists.txt
new file mode 100644
index 00000000..ff894ede
--- /dev/null
+++ b/tests/syntax-tests/source/CMake/CMakeLists.txt
@@ -0,0 +1,16 @@
+# This is a file for testing syntax highlighting.
+cmake_minimum_required(VERSION 3.13)
+project(hello-bat VERSION 0.0.1 LANGUAGES C)
+
+set(SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src/")
+file(GLOB_RECURSE SOURCES "${SOURCE_DIR}/*.c")
+
+add_executable(hello-bat SOURCES)
+
+find_package(assimp CONFIG)
+target_link_libraries(hello-bat assimp)
+
+option("ENABLE_TESTS" OFF)
+if(ENABLE_TESTS)
+ add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/tests/")
+endif()