mirror of
https://github.com/Patoke/4JLibs.git
synced 2026-05-21 21:24:31 +00:00
* feat: CMakeSettings.json * chore: remove visual studio stuff chore: move .clang-format to main directory * feat: new file structure, easier to implement as a submodule within existing projects * chore: we actually include some code now... * chore: remove prebuilt libraries (oops) * feat: new shader building script using cmake * chore: add debug postfix specifier * fix: forgot that windows builds use 4J_Render_PC for the render library * fix: didn't add the output directory (where shaders are saved to) to the include directories of 4J_Render
31 lines
670 B
CMake
31 lines
670 B
CMake
cmake_minimum_required(VERSION 3.25 FATAL_ERROR)
|
|
|
|
project(4JLibs.Windows.Input LANGUAGES CXX)
|
|
|
|
add_library(${PROJECT_NAME} STATIC
|
|
src/4J_Input.cpp
|
|
src/INP_ForceFeedback.cpp
|
|
src/INP_Keyboard.cpp
|
|
src/INP_Main.cpp
|
|
src/INP_StringCheck.cpp
|
|
src/LinkedList.cpp
|
|
src/stdafx.cpp
|
|
)
|
|
|
|
target_link_libraries(${PROJECT_NAME} PUBLIC
|
|
4JLibs.Globals
|
|
)
|
|
|
|
target_include_directories(${PROJECT_NAME} PRIVATE
|
|
${CMAKE_CURRENT_SOURCE_DIR}/inc
|
|
)
|
|
|
|
target_precompile_headers(${PROJECT_NAME} PRIVATE
|
|
inc/stdafx.h
|
|
)
|
|
|
|
set_target_properties(${PROJECT_NAME} PROPERTIES
|
|
PREFIX ""
|
|
OUTPUT_NAME "4J_Input"
|
|
ARCHIVE_OUTPUT_DIRECTORY "${4JLibs_SOURCE_DIR}/libs"
|
|
) |