diff options
author | Justin F <forsbergjj@gmail.com> | 2024-07-24 17:54:56 -0500 |
---|---|---|
committer | Justin F <forsbergjj@gmail.com> | 2024-07-24 17:54:56 -0500 |
commit | d65f31f21a3b5b4e2e3b5c17a68253126fdcaeee (patch) | |
tree | 56748dfb95033713038daf4992440eb154659515 | |
parent | 37000d13927f52c96d7ead3f9bca4fe421894fcf (diff) |
add cmake unicode option for windows builds
-rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
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 |