From d65f31f21a3b5b4e2e3b5c17a68253126fdcaeee Mon Sep 17 00:00:00 2001 From: Justin F Date: Wed, 24 Jul 2024 17:54:56 -0500 Subject: add cmake unicode option for windows builds --- CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6546b69..5bf15df 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,17 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) include(CMakeDependentOption) include(GNUInstallDirs) +option(STORM_UNICODE "Compile UNICODE version instead of ANSI one (Visual Studio only)" OFF) + +if(WIN32) + if(STORM_UNICODE) + message(STATUS "Build UNICODE version") + add_definitions(-DUNICODE -D_UNICODE) + else() + message(STATUS "Build ANSI version") + endif() +endif() + option(BUILD_SHARED_LIBS "Compile shared libraries" OFF) option(STORM_SKIP_INSTALL "Skip installing files" OFF) option(STORM_USE_BUNDLED_LIBRARIES -- cgit v1.2.3