From 43c0633b092cbe2bc76b1a56243328e5bdcc9e68 Mon Sep 17 00:00:00 2001 From: itqop Date: Wed, 15 May 2024 13:10:29 +0300 Subject: [PATCH] Fix Cmake --- libs/FastNoiseSIMD/CMakeLists.txt | 5 ----- libs/gl2d/CMakeLists.txt | 4 +--- libs/glad/CMakeLists.txt | 1 - 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/libs/FastNoiseSIMD/CMakeLists.txt b/libs/FastNoiseSIMD/CMakeLists.txt index 7f7a82c..d9c54bd 100644 --- a/libs/FastNoiseSIMD/CMakeLists.txt +++ b/libs/FastNoiseSIMD/CMakeLists.txt @@ -1,11 +1,6 @@ cmake_minimum_required(VERSION 3.1) project(fastNoiseSIMD) - - -# Define MY_SOURCES to be a list of all the source files for my game file(GLOB_RECURSE MY_SOURCES CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/FastNoiseSIMD/*.cpp") - - add_library(fastNoiseSIMD) target_sources(fastNoiseSIMD PRIVATE ${MY_SOURCES}) target_include_directories(fastNoiseSIMD PUBLIC "FastNoiseSIMD") \ No newline at end of file diff --git a/libs/gl2d/CMakeLists.txt b/libs/gl2d/CMakeLists.txt index 428c826..81ffe8e 100644 --- a/libs/gl2d/CMakeLists.txt +++ b/libs/gl2d/CMakeLists.txt @@ -3,7 +3,5 @@ project(gl2d) add_library(gl2d) target_sources(gl2d PRIVATE "src/gl2d.cpp") -target_include_directories(gl2d PUBLIC include "${CMAKE_SOURCE_DIR}/thirdparty/glm") -#target_include_directories(gl2d PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include") -#target_include_directories(gl2d PUBLIC include) +target_include_directories(gl2d PUBLIC include "${CMAKE_SOURCE_DIR}/libs/glm") target_link_libraries(gl2d PUBLIC glad stb_image stb_truetype) \ No newline at end of file diff --git a/libs/glad/CMakeLists.txt b/libs/glad/CMakeLists.txt index 2b3265f..518ca58 100644 --- a/libs/glad/CMakeLists.txt +++ b/libs/glad/CMakeLists.txt @@ -1,6 +1,5 @@ cmake_minimum_required(VERSION 3.1) project(glad) - add_library(glad) target_sources(glad PRIVATE src/glad.c) target_include_directories(glad PUBLIC include) \ No newline at end of file