cmake_minimum_required(VERSION 3.5) project (gdmodule VERSION 0.1 DESCRIPTION "Godot Module for Mars Tycoon") set(CMAKE_POSITION_INDEPENDENT_CODE ON) set(OUTPUT_DIR ${CMAKE_BINARY_DIR}/build/targets/gdmodule) file(GLOB sources "src/*.cpp") file(GLOB includes "include/*.h") add_library(gdmodule SHARED ${sources} ${includes}) set_property(TARGET gdmodule PROPERTY OUTPUT_NAME gdrevenant) set_property(TARGET gdmodule PROPERTY LIBRARY_OUTPUT_DIRECTORY /${OUTPUT_DIR}) target_include_directories( gdmodule PRIVATE ../godot-cpp/godot_headers ../godot-cpp/include/core ../godot-cpp/include/gen ../godot-cpp/include ../yamlprovider/include PUBLIC include ) target_link_libraries(gdmodule PRIVATE yamlprovider geoworld) add_custom_command(TARGET gdmodule POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory bin $)