source: Revenant/gdmodule/CMakeLists.txt@ 8125274

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 
1cmake_minimum_required(VERSION 3.5)
2
3project (gdmodule VERSION 0.1 DESCRIPTION "Godot Module for Mars Tycoon")
4set(CMAKE_POSITION_INDEPENDENT_CODE ON)
5set(OUTPUT_DIR ${CMAKE_BINARY_DIR}/targets/gdmodule)
6
7file(GLOB sources "src/*.cpp")
8file(GLOB includes "include/*.h")
9file(GLOB bins "bin/*.gdns" "bin/*.gdnlib")
10
11add_library(gdmodule SHARED ${sources} ${includes})
12
13set_property(TARGET gdmodule PROPERTY OUTPUT_NAME gdrevenant)
14set_property(TARGET gdmodule PROPERTY LIBRARY_OUTPUT_DIRECTORY /${OUTPUT_DIR})
15
16target_include_directories(gdmodule PUBLIC include)
17
18target_link_libraries(gdmodule PRIVATE yamlprovider geoworld godot-cpp)
19
Note: See TracBrowser for help on using the repository browser.