source: Revenant/gdmodule/CMakeLists.txt@ dd8f5b4

Last change on this file since dd8f5b4 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 
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}/build/targets/gdmodule)
6
7file(GLOB sources "src/*.cpp")
8file(GLOB includes "include/*.h")
9add_library(gdmodule SHARED ${sources} ${includes})
10set_property(TARGET gdmodule PROPERTY OUTPUT_NAME gdrevenant)
11set_property(TARGET gdmodule PROPERTY LIBRARY_OUTPUT_DIRECTORY /${OUTPUT_DIR})
12
13target_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)
16target_link_libraries(gdmodule PRIVATE yamlprovider geoworld)
17add_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.