2020-01-09 13:59:19 +01:00
# wxMASSManager
# Copyright (C) 2020 Guillaume Jacquemin
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
cmake_minimum_required ( VERSION 3.5 )
project ( wxMASSManager LANGUAGES CXX )
set ( CMAKE_CXX_STANDARD 11 )
set ( CMAKE_CXX_STANDARD_REQUIRED ON )
set ( CMAKE_CXX_EXTENSIONS ON )
2020-09-21 13:48:12 +02:00
option ( USE_CORRADE_SUBMODULE "Use Corrade from the Git submodule. If set to OFF, make sure you have Corrade 2020.06 or later installed to a path CMake can search in." ON )
if ( NOT USE_CORRADE_SUBMODULE )
set ( BUILD_STATIC ON CACHE BOOL "" FORCE )
set ( WITH_INTERCONNECT OFF CACHE BOOL "" FORCE )
set ( WITH_PLUGINMANAGER OFF CACHE BOOL "" FORCE )
set ( WITH_TESTSUITE OFF CACHE BOOL "" FORCE )
add_subdirectory ( corrade EXCLUDE_FROM_ALL )
endif ( )
2020-01-09 13:59:19 +01:00
find_package ( Corrade REQUIRED Containers Utility )
2020-06-20 11:35:23 +02:00
include_directories ( SYSTEM "C:/msys64/mingw64/lib/wx/include/msw-unicode-static-3.0" )
2020-01-09 13:59:19 +01:00
include_directories ( SYSTEM "C:/msys64/mingw64/include/wx-3.0" )
2020-01-13 00:21:47 +01:00
set_directory_properties ( PROPERTIES CORRADE_USE_PEDANTIC_FLAGS ON )
2020-01-09 13:59:19 +01:00
add_executable ( wxMASSManager WIN32
m a i n . c p p
G U I / M a i n F r a m e . f b p
G U I / M a i n F r a m e . h
G U I / M a i n F r a m e . c p p
G U I / E v t M a i n F r a m e . h
G U I / E v t M a i n F r a m e . c p p
2020-06-13 20:20:52 +02:00
G U I / N a m e C h a n g e D i a l o g . f b p
G U I / N a m e C h a n g e D i a l o g . h
G U I / N a m e C h a n g e D i a l o g . c p p
G U I / E v t N a m e C h a n g e D i a l o g . h
G U I / E v t N a m e C h a n g e D i a l o g . c p p
2020-09-01 16:14:43 +02:00
M a s s B u i l d e r M a n a g e r / M a s s B u i l d e r M a n a g e r . h
M a s s B u i l d e r M a n a g e r / M a s s B u i l d e r M a n a g e r . c p p
2020-01-12 14:54:23 +01:00
M a s s M a n a g e r / M a s s M a n a g e r . h
M a s s M a n a g e r / M a s s M a n a g e r . c p p
2020-09-01 16:14:43 +02:00
P r o f i l e / P r o f i l e . h
P r o f i l e / P r o f i l e . c p p
P r o f i l e M a n a g e r / P r o f i l e M a n a g e r . h
P r o f i l e M a n a g e r / P r o f i l e M a n a g e r . c p p
S c r e e n s h o t M a n a g e r / S c r e e n s h o t M a n a g e r . h
S c r e e n s h o t M a n a g e r / S c r e e n s h o t M a n a g e r . c p p
2020-01-09 13:59:19 +01:00
r e s o u r c e . r c )
2020-06-20 11:35:23 +02:00
target_compile_options ( wxMASSManager PRIVATE -D_FILE_OFFSET_BITS=64 -D__WXMSW__ -fpermissive )
target_link_options ( wxMASSManager PRIVATE -static -static-libgcc -static-libstdc++ -pipe -Wl,--subsystem,windows -mwindows )
2020-01-09 13:59:19 +01:00
target_link_libraries ( wxMASSManager PRIVATE
C o r r a d e : : C o n t a i n e r s
C o r r a d e : : U t i l i t y
2020-01-16 09:04:51 +01:00
w x _ m s w u _ a d v - 3 . 0
2020-06-20 11:35:23 +02:00
w x _ m s w u _ c o r e - 3 . 0
w x _ b a s e u - 3 . 0
w x r e g e x u - 3 . 0
w x e x p a t - 3 . 0
w x t i f f - 3 . 0
w x j p e g - 3 . 0
w x p n g - 3 . 0
w x z l i b - 3 . 0
r p c r t 4
o l e a u t 3 2
o l e 3 2
u u i d
l z m a
j b i g
w i n s p o o l
w i n m m
s h e l l 3 2
c o m c t l 3 2
c o m d l g 3 2
a d v a p i 3 2
w s o c k 3 2
g d i 3 2
o l e a c c
2020-01-10 12:23:25 +01:00
w t s a p i 3 2 )