diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-07-01 22:25:36 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-07-01 22:25:36 +0200 |
commit | 1aba3ad8f95c741f41bd6a2bd1d80ac18e7c89b4 (patch) | |
tree | 4d5d56b975a4e2174b024ea8dc075f3801147e2c /src | |
parent | Include boost in ConfigurationEditor (diff) | |
download | smolbote-1aba3ad8f95c741f41bd6a2bd1d80ac18e7c89b4.tar.xz |
Add WIN32 to windows executable
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8778b18..8cd03e6 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -6,7 +6,7 @@ set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) set(CMAKE_AUTORCC ON) -add_executable(poi +set(poi_SRC # main main.cpp singleapplication.cpp @@ -51,6 +51,12 @@ add_executable(poi plugin.h ) +if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") + add_executable(poi WIN32 ${poi_SRC}) +else() + add_executable(poi ${poi_SRC}) +endif() + target_include_directories(poi PRIVATE ${Boost_INCLUDE_DIRS} PRIVATE ../lib ../plugins |