Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@
# Tests
/test/*/bin
/test/external/

# CMake build folders
*/build*
21 changes: 21 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
cmake_minimum_required(VERSION 3.16.0)

project(xtd VERSION 0.1 LANGUAGES CXX)


# Define the header-only target
add_library(xtd INTERFACE)
target_include_directories(xtd INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)

# Installation instructions
install(DIRECTORY include/ DESTINATION include)

install(TARGETS xtd EXPORT xtdTargets)
install(EXPORT xtdTargets
FILE xtdConfig.cmake
DESTINATION lib/cmake/xtd
)

File renamed without changes.
File renamed without changes.
File renamed without changes.