Skip to content

Commit

Permalink
cross platform stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
AzzieDev committed Mar 17, 2023
1 parent 04e25aa commit 9f8f874
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
# cmake_minimum_required(VERSION <specify CMake version here>)
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")

0 comments on commit 9f8f874

Please sign in to comment.