Skip to content

Commit 9c4e728

Browse files
committed
Sharpen CMake scripts for actual project
1 parent 131f193 commit 9c4e728

5 files changed

Lines changed: 15 additions & 55 deletions

File tree

CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DynLibUtils
2-
# Copyright (C) 2023-2024 komashchenko & Wend4r
3-
# Licensed under the GPLv3 license. See LICENSE file in the project root for details.
2+
# Copyright (C) 2023-2024 Wend4r & komashchenko
3+
# Licensed under the MIT license. See LICENSE file in the project root for details.
44

55
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
66

@@ -20,9 +20,9 @@ string(TOUPPER "${PROJECT_NAME}" PROJECT_NAME_UPPER)
2020

2121
set(PROJECT_OUTPUT_NAME "dynutils")
2222

23-
set(PROJECT_AUTHOR "Wend4r")
24-
set(PROJECT_DESCRIPTION_FULL "Universal gamedata parser for Source 2 games")
25-
set(PROJECT_LICENSE "GPLv3")
23+
set(PROJECT_AUTHOR "Wend4r & komashchenko")
24+
set(PROJECT_DESCRIPTION_FULL "A library for interacting with dynamically loaded libraries (DLL, SO or DYLIB)")
25+
set(PROJECT_LICENSE "MIT")
2626
string(TIMESTAMP PROJECT_BUILD_DATE "%Y-%m-%d")
2727
string(TIMESTAMP PROJECT_BUILD_TIME "%H:%M:%S")
2828

cmake/platform/linux.cmake

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,15 @@
11
# DynLibUtils
2-
# Copyright (C) 2023-2024 komashchenko & Wend4r
3-
# Licensed under the GPLv3 license. See LICENSE file in the project root for details.
2+
# Copyright (C) 2023-2025 Wend4r & komashchenko
3+
# Licensed under the MIT license. See LICENSE file in the project root for details.
44

55
set(PLATFORM_COMPILE_OPTIONS
66
${PLATFORM_COMPILE_OPTIONS}
77

88
-Wall
9-
-Wno-array-bounds
10-
-Wno-attributes -Wno-ignored-attributes
11-
-Wno-conversion -Wno-overloaded-virtual
12-
-Wno-delete-non-virtual-dtor -Wno-non-virtual-dtor
13-
-Wno-invalid-offsetof -Wno-invalid-noreturn
14-
-Wno-sign-compare
15-
-Wno-unused -Wno-register
16-
-Wno-narrowing
9+
-Wno-attributes
1710

1811
-mtune=generic -mmmx -msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2
1912
-fvisibility=default -fPIC
20-
21-
-fno-strict-aliasing -fno-threadsafe-statics
2213
)
2314

2415
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
@@ -28,13 +19,3 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
2819
-g3 -ggdb
2920
)
3021
endif()
31-
32-
set(PLATFORM_LINK_OPTIONS
33-
${PLATFORM_LINK_OPTIONS}
34-
)
35-
36-
set(PLATFORM_COMPILE_DEFINITIONS
37-
${PLATFORM_COMPILE_DEFINITIONS}
38-
39-
_GLIBCXX_USE_CXX11_ABI=0
40-
)

cmake/platform/macos.cmake

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,14 @@
11
# DynLibUtils
2-
# Copyright (C) 2023-2024 komashchenko & Wend4r
3-
# Licensed under the GPLv3 license. See LICENSE file in the project root for details.
2+
# Copyright (C) 2023-2025 Wend4r & komashchenko
3+
# Licensed under the MIT license. See LICENSE file in the project root for details.
44

55
set(PLATFORM_COMPILE_OPTIONS
66
${PLATFORM_COMPILE_OPTIONS}
77

88
-Wall
9-
-Wno-array-bounds
10-
-Wno-attributes -Wno-ignored-attributes
11-
-Wno-conversion -Wno-overloaded-virtual
12-
-Wno-delete-non-virtual-dtor -Wno-non-virtual-dtor
13-
-Wno-deprecated-declarations
14-
-Wno-dynamic-exception-spec
15-
-Wno-invalid-offsetof -Wno-invalid-noreturn
16-
-Wno-sign-compare
17-
-Wno-unused -Wno-register
18-
-Wno-narrowing
9+
-Wno-attributes
1910

2011
-fvisibility=default -fPIC
21-
22-
-fno-strict-aliasing -fno-threadsafe-statics
2312
)
2413

2514
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
@@ -29,13 +18,3 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
2918
-g3 -ggdb
3019
)
3120
endif()
32-
33-
set(PLATFORM_LINK_OPTIONS
34-
${PLATFORM_LINK_OPTIONS}
35-
)
36-
37-
set(PLATFORM_COMPILE_DEFINITIONS
38-
${PLATFORM_COMPILE_DEFINITIONS}
39-
40-
_GLIBCXX_USE_CXX11_ABI=0
41-
)

cmake/platform/shared.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DynLibUtils
2-
# Copyright (C) 2023-2024 komashchenko & Wend4r
3-
# Licensed under the GPLv3 license. See LICENSE file in the project root for details.
2+
# Copyright (C) 2023-2024 Wend4r & komashchenko
3+
# Licensed under the MIT license. See LICENSE file in the project root for details.
44

55
if(UNIX)
66
if(APPLE)

cmake/platform/windows.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DynLibUtils
2-
# Copyright (C) 2023-2024 komashchenko & Wend4r
3-
# Licensed under the GPLv3 license. See LICENSE file in the project root for details.
2+
# Copyright (C) 2023-2024 Wend4r & komashchenko
3+
# Licensed under the MIT license. See LICENSE file in the project root for details.
44

55
set(PLATFORM_COMPILE_DEFINITIONS
66
${PLATFORM_COMPILE_DEFINITIONS}

0 commit comments

Comments
 (0)