* Begin Sorting SubProjects into Folders * Add more subprojects to folders * Add even more subprojects to folders * Add further subprojects to folders * Move the last two projects * Move Resources to a Resources subfolder * Remove spaces to be stylistically coherent * Revert Improper CMake Modifications * Revert erroneous line removals * Only specify sdl2's folder on WIN32 * Add the shader subprojects to a Generated folder * Move shaders to Filament/Shaders
30 lines
1.4 KiB
CMake
30 lines
1.4 KiB
CMake
cmake_minimum_required(VERSION 3.19)
|
|
project(resgen)
|
|
|
|
set(TARGET resgen)
|
|
|
|
# ==================================================================================================
|
|
# Source files
|
|
# ==================================================================================================
|
|
set(SRCS src/main.cpp)
|
|
|
|
# ==================================================================================================
|
|
# Target definitions
|
|
# ==================================================================================================
|
|
add_executable(${TARGET} ${SRCS})
|
|
target_link_libraries(${TARGET} PRIVATE utils getopt)
|
|
set_target_properties(${TARGET} PROPERTIES FOLDER Tools)
|
|
|
|
# =================================================================================================
|
|
# Licenses
|
|
# ==================================================================================================
|
|
set(MODULE_LICENSES getopt)
|
|
set(GENERATION_ROOT ${CMAKE_CURRENT_BINARY_DIR}/generated)
|
|
list_licenses(${GENERATION_ROOT}/licenses/licenses.inc ${MODULE_LICENSES})
|
|
target_include_directories(${TARGET} PRIVATE ${GENERATION_ROOT})
|
|
|
|
# ==================================================================================================
|
|
# Installation
|
|
# ==================================================================================================
|
|
install(TARGETS ${TARGET} RUNTIME DESTINATION bin)
|