mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-22 15:37:53 -05:00
16 lines
485 B
CMake
16 lines
485 B
CMake
cmake_minimum_required(VERSION 3.21)
|
|
|
|
set(PROJECT_NAME TestDependency)
|
|
|
|
project(${PROJECT_NAME} VERSION 1.0.0)
|
|
|
|
add_library(${PROJECT_NAME} SHARED main.cpp)
|
|
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_20)
|
|
|
|
add_compile_definitions(EXPORTING_MOD)
|
|
|
|
set(GEODE_LINK_SOURCE ON)
|
|
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
|
|
|
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/mod.json.in ${CMAKE_CURRENT_SOURCE_DIR}/mod.json)
|
|
create_geode_file(${PROJECT_NAME} DONT_INSTALL)
|