From cf36d8f21ff451b13803751b909eb96a410b7861 Mon Sep 17 00:00:00 2001 From: Fleeym <61891787+Fleeym@users.noreply.github.com> Date: Thu, 19 Oct 2023 23:23:27 +0300 Subject: [PATCH] add rgb color input to cmakelists :sunglasses: --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c08db58d..7d328c63 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,11 +13,16 @@ file(GLOB SOURCES src/features/BetterScaling/*.cpp src/features/StartPosSwitcher/*.cpp src/features/OffsetNextFree/*.cpp + src/features/RGBColorInput/*.cpp src/features/*.cpp src/other/*.cpp src/*.cpp ) +if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" AND WIN32) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32") +endif() + # Set up the mod binary add_library(${PROJECT_NAME} SHARED ${SOURCES}) set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "") @@ -34,6 +39,7 @@ add_subdirectory($ENV{GEODE_SDK} $ENV{GEODE_SDK}/build) setup_geode_mod(${PROJECT_NAME} EXTERNALS be_team.editorapi:1.0.0) + # Build EditorAPI alongside BetterEdit add_subdirectory(api) target_link_libraries(${PROJECT_NAME} EditorAPI)