add cmake interface
Browse files- CMakeLists.txt +4 -0
- dataset-tiny-texts-dir.in.h +2 -0
CMakeLists.txt
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
add_library(dataset-tiny-texts INTERFACE)
|
2 |
+
add_library(dataset::tiny-texts ALIAS dataset-tiny-texts)
|
3 |
+
configure_file(dataset-tiny-texts-dir.in.h dataset-tiny-texts-dir.h)
|
4 |
+
target_include_directories(dataset-tiny-texts INTERFACE "${CMAKE_CURRENT_BINARY_DIR}")
|
dataset-tiny-texts-dir.in.h
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
#pragma once
|
2 |
+
#define DATASET_TINY_TEXTS_DIR "@CMAKE_CURRENT_SOURCE_DIR@"
|