2020-01-06 08:46:16 +00:00
|
|
|
cmake_minimum_required(VERSION 3.15)
|
|
|
|
project(dylibbundler)
|
|
|
|
|
2020-01-06 21:38:32 +00:00
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
2020-01-06 08:46:16 +00:00
|
|
|
|
|
|
|
if(NOT CMAKE_BUILD_TYPE)
|
2020-01-06 08:55:21 +00:00
|
|
|
set(CMAKE_BUILD_TYPE Release)
|
2020-01-06 08:46:16 +00:00
|
|
|
endif()
|
|
|
|
|
2020-01-06 21:38:32 +00:00
|
|
|
string(REPLACE "-O3" "-O2" CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE})
|
|
|
|
|
|
|
|
add_compile_options(-pipe -Wall -Wextra -Wpedantic)
|
2020-01-07 08:44:58 +00:00
|
|
|
add_link_options(-Wl,-dead_strip)
|
2020-01-06 21:38:32 +00:00
|
|
|
|
2020-01-06 08:46:16 +00:00
|
|
|
include_directories(src)
|
|
|
|
|
|
|
|
add_executable(dylibbundler
|
|
|
|
src/Dependency.cpp
|
|
|
|
src/Dependency.h
|
|
|
|
src/DylibBundler.cpp
|
|
|
|
src/DylibBundler.h
|
|
|
|
src/main.cpp
|
|
|
|
src/Settings.cpp
|
|
|
|
src/Settings.h
|
|
|
|
src/Utils.cpp
|
|
|
|
src/Utils.h
|
|
|
|
)
|