From 9f8f8747560ef7194a6b5ef4ac0fc1f8d3afadb6 Mon Sep 17 00:00:00 2001 From: AzzieDev <18339356+AzzieDev@users.noreply.github.com> Date: Fri, 17 Mar 2023 01:09:32 -0400 Subject: [PATCH] cross platform stuff --- CMakeLists.txt | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3603d43..ed1c097 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,10 +1,22 @@ -# cmake_minimum_required(VERSION ) +cmake_minimum_required(VERSION 3.0) + project(Cryptkeeper) -set(CMAKE_CXX_STANDARD 14) +#for POSIX: use +set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libstdc++ -static-libgcc") + + +set(CMAKE_BUILD_TYPE Release) + include_directories(.) add_executable(Cryptkeeper crypt.cpp crypt.h) + +#for Windows, using boost 1.81.0 in the below path, uncomment +#include_directories("C:/Program Files/Boost/boost_1_81_0/") +#set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /NODEFAULTLIB:MSVCRT") +#set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT") +