Last change
on this file since f40df48 was dd8f5b4, checked in by Jonathan Neufeld <support@…>, 4 years ago |
(WIP) GD Native module
|
-
Property mode
set to
100644
|
File size:
843 bytes
|
Line | |
---|
1 | cmake_minimum_required(VERSION 3.5)
|
---|
2 |
|
---|
3 | project (gdmodule VERSION 0.1 DESCRIPTION "Godot Module for Mars Tycoon")
|
---|
4 | set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
---|
5 | set(OUTPUT_DIR ${CMAKE_BINARY_DIR}/build/targets/gdmodule)
|
---|
6 |
|
---|
7 | file(GLOB sources "src/*.cpp")
|
---|
8 | file(GLOB includes "include/*.h")
|
---|
9 | add_library(gdmodule SHARED ${sources} ${includes})
|
---|
10 | set_property(TARGET gdmodule PROPERTY OUTPUT_NAME gdrevenant)
|
---|
11 | set_property(TARGET gdmodule PROPERTY LIBRARY_OUTPUT_DIRECTORY /${OUTPUT_DIR})
|
---|
12 |
|
---|
13 | target_include_directories(
|
---|
14 | gdmodule PRIVATE ../godot-cpp/godot_headers ../godot-cpp/include/core ../godot-cpp/include/gen ../godot-cpp/include ../yamlprovider/include PUBLIC include
|
---|
15 | )
|
---|
16 | target_link_libraries(gdmodule PRIVATE yamlprovider geoworld)
|
---|
17 | add_custom_command(TARGET gdmodule POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory bin $<TARGET_FILE_DIR:gdmodule>)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.