-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
44 lines (33 loc) · 1.37 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
cmake_minimum_required(VERSION 3.0)
# This is the name of the resulting library, without
# the .dll (Windows) or .so (GNU+Linux)
set(plugin_name lfs_sblt) # PLEASE EDIT ME!
# This is the project name, often shown in IDEs
# On Windows, this is the filename of the Visual Studio project
project(LuaFileSystemSBLT)
# Use CXX 14
set(CMAKE_CXX_STANDARD 14)
# Find the source file
file(GLOB_RECURSE sources src/*.cpp include/*.h)
# Set up loading of the statically-linked base library
link_directories(lib)
# Add the library
add_library(${plugin_name} SHARED ${sources})
target_include_directories(${plugin_name} PUBLIC include)
# Include the base library
# TODO add GitLab URL
target_include_directories(${plugin_name} PUBLIC lib)
target_link_libraries(${plugin_name} sblt_plugin)
# For development purposes, you may find this helpful
# The mod the DLL will be copied into a mod folder whenever
# you compile the project
# eg mymod copies it to mods/mymod/<the plugin name>.dll
set(target_mod_name mymod)
set(target_path D:/SteamLibrary/steamapps/common/PAYDAY 2/mods/BeardLib-Editor/Tools)
#set(target_path C:/Program Files \(x86\)/Steam/steamapps/common/PAYDAY 2/mods/BeardLib-Editor/Tools)
# Uncomment this to enable it
add_custom_command(
TARGET ${plugin_name}
POST_BUILD
COMMAND powershell -command copy \\\"$<TARGET_FILE:${plugin_name}>\\\" \\\"${target_path}/${plugin_name}.dll\\\"
)