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}/targets/gdmodule) file(GLOB sources "src/*.cpp") file(GLOB includes "include/*.h") file(GLOB bins "bin/*.gdns" "bin/*.gdnlib") 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 PUBLIC include) target_link_libraries(gdmodule PRIVATE yamlprovider geoworld godot-cpp)