Skip to content

Commit 6794839

Browse files
committed
chore: moved install step from workspace
1 parent cc2c5f4 commit 6794839

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
cmake_minimum_required(VERSION 3.25)
2+
project(redasm-kb NONE) # NONE = no compiler needed, it's just data files
3+
4+
if(WIN32)
5+
set(REDASM_INSTALL_KB "kb")
6+
else()
7+
include(GNUInstallDirs)
8+
set(REDASM_INSTALL_KB "${CMAKE_INSTALL_DATADIR}/redasm/kb")
9+
endif()
10+
11+
install(
12+
DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/"
13+
DESTINATION ${REDASM_INSTALL_KB}
14+
FILES_MATCHING
15+
PATTERN "*.toml"
16+
PATTERN ".*" EXCLUDE
17+
)

0 commit comments

Comments
 (0)