port/mars-tycoon
Last change
on this file since 8125274 was 8125274, checked in by Jonathan Neufeld <support@…>, 3 years ago |
(WIP) Introduction of GD Native module and Godot-CPP API sub-module
|
-
Property mode
set to
100644
|
File size:
636 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}/targets/gdmodule)
|
---|
6 |
|
---|
7 | file(GLOB sources "src/*.cpp")
|
---|
8 | file(GLOB includes "include/*.h")
|
---|
9 | file(GLOB bins "bin/*.gdns" "bin/*.gdnlib")
|
---|
10 |
|
---|
11 | add_library(gdmodule SHARED ${sources} ${includes})
|
---|
12 |
|
---|
13 | set_property(TARGET gdmodule PROPERTY OUTPUT_NAME gdrevenant)
|
---|
14 | set_property(TARGET gdmodule PROPERTY LIBRARY_OUTPUT_DIRECTORY /${OUTPUT_DIR})
|
---|
15 |
|
---|
16 | target_include_directories(gdmodule PUBLIC include)
|
---|
17 |
|
---|
18 | target_link_libraries(gdmodule PRIVATE yamlprovider geoworld godot-cpp)
|
---|
19 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.