Fixes some module fuckery

This commit is contained in:
2024-11-07 17:50:18 -05:00
parent 239e6dc59f
commit 11a7071280
2 changed files with 6 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ cmake_minimum_required(VERSION 3.20)
#set(CMAKE_CXX_STANDARD 23)
#set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/modules" ${CMAKE_MODULE_PATH})
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/modules")
include(common)

View File

@@ -13,9 +13,11 @@ function(PostSetup)
endfunction()
function(AddFGLExecutable NAME SRC_SOURCES_LOCATION)
file(GLOB_RECURSE CPP_SOURCES ${SRC_SOURCES_LOCATION}/**.cpp)
file(GLOB_RECURSE HPP_SOURCES ${SRC_SOURCES_LOCATION}/**.hpp)
add_executable(${NAME} ${CPP_SOURCES} ${HPP_SOURCES})
file(GLOB_RECURSE SOURCES
${SRC_SOURCES_LOCATION}/**.cpp
${SRC_SOURCES_LOCATION}/**.hpp
)
add_executable(${NAME} ${SOURCES})
target_include_directories(${NAME} PRIVATE ${SRC_SOURCES_LOCATION})
set_target_properties(${NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
SetFGLFlags(${NAME})