mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 11:10:52 +00:00
Win32cpp and musikServer now included in CMake and compile and run :D
This commit is contained in:
parent
c55a1fc9fb
commit
159f0c97b4
@ -110,6 +110,7 @@ include_directories (
|
|||||||
add_subdirectory(src/3rdparty)
|
add_subdirectory(src/3rdparty)
|
||||||
add_subdirectory(src/core)
|
add_subdirectory(src/core)
|
||||||
add_subdirectory(src/contrib)
|
add_subdirectory(src/contrib)
|
||||||
#add_subdirectory(src/server)
|
add_subdirectory(src/win32cpp)
|
||||||
|
add_subdirectory(src/server)
|
||||||
add_subdirectory(src/square)
|
add_subdirectory(src/square)
|
||||||
#add_subdirectory(src/cube)
|
#add_subdirectory(src/cube)
|
||||||
|
74
src/server/CMakeLists.txt
Normal file
74
src/server/CMakeLists.txt
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
set(SERVER_SOURCES
|
||||||
|
ConnectedUsersController.cpp
|
||||||
|
ConnectedUsersListController.cpp
|
||||||
|
ConnectedUsersListModel.cpp
|
||||||
|
main.cpp
|
||||||
|
MainWindowController.cpp
|
||||||
|
pch.cpp
|
||||||
|
SyncpathController.cpp
|
||||||
|
SyncpathListController.cpp
|
||||||
|
SyncpathListModel.cpp
|
||||||
|
SyncpathView.cpp
|
||||||
|
users/EditUserController.cpp
|
||||||
|
users/EditUserView.cpp
|
||||||
|
users/UsersController.cpp
|
||||||
|
users/UsersListController.cpp
|
||||||
|
users/UsersListModel.cpp
|
||||||
|
users/UsersView.cpp
|
||||||
|
#resources/resource.rc
|
||||||
|
)
|
||||||
|
|
||||||
|
set (SERVER_HEADERS
|
||||||
|
ConnectedUsersController.hpp
|
||||||
|
ConnectedUsersListController.hpp
|
||||||
|
ConnectedUsersListModel.hpp
|
||||||
|
MainWindowController.hpp
|
||||||
|
pch.hpp
|
||||||
|
SyncpathController.hpp
|
||||||
|
SyncpathListController.hpp
|
||||||
|
SyncpathListModel.hpp
|
||||||
|
SyncpathView.hpp
|
||||||
|
resources/resource.h
|
||||||
|
users/EditUserController.hpp
|
||||||
|
users/EditUserView.hpp
|
||||||
|
users/UsersController.hpp
|
||||||
|
users/UsersListModel.hpp
|
||||||
|
users/UsersView.hpp
|
||||||
|
)
|
||||||
|
|
||||||
|
SOURCE_GROUP("Header Files\\users" FILES
|
||||||
|
users/EditUserController.hpp
|
||||||
|
users/EditUserView.hpp
|
||||||
|
users/UsersController.hpp
|
||||||
|
users/UsersListModel.hpp
|
||||||
|
users/UsersView.hpp)
|
||||||
|
SOURCE_GROUP("Source Files\\users" FILES
|
||||||
|
users/EditUserController.cpp
|
||||||
|
users/EditUserView.cpp
|
||||||
|
users/UsersController.cpp
|
||||||
|
users/UsersListController.cpp
|
||||||
|
users/UsersListModel.cpp
|
||||||
|
users/UsersView.cpp)
|
||||||
|
SOURCE_GROUP("Header Files\\resources" FILES
|
||||||
|
resources/resource.h)
|
||||||
|
|
||||||
|
|
||||||
|
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||||
|
add_definitions(-DWIN32)
|
||||||
|
if(NOT DEFINED MINGW)
|
||||||
|
|
||||||
|
endif(NOT DEFINED MINGW)
|
||||||
|
else(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||||
|
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -fpermissive)
|
||||||
|
endif(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||||
|
|
||||||
|
add_definitions(
|
||||||
|
-DXML_STATIC
|
||||||
|
-D_CRT_SECURE_NO_DEPRECATE
|
||||||
|
-D_DEBUG
|
||||||
|
)
|
||||||
|
|
||||||
|
add_executable( musikServer ${SERVER_SOURCES} ${SERVER_HEADERS})
|
||||||
|
target_link_libraries( musikServer win32cpp musik comctl32)
|
||||||
|
|
||||||
|
|
29
src/win32cpp/CMakeLists.txt
Normal file
29
src/win32cpp/CMakeLists.txt
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
FILE (GLOB WIN32CPP_SOURCES *.cpp)
|
||||||
|
FILE (GLOB WIN32CPP_HEADERS *.hpp)
|
||||||
|
|
||||||
|
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||||
|
add_definitions(-DWIN32)
|
||||||
|
if(NOT DEFINED MINGW)
|
||||||
|
|
||||||
|
endif(NOT DEFINED MINGW)
|
||||||
|
else(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||||
|
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -fpermissive)
|
||||||
|
endif(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||||
|
|
||||||
|
add_definitions(
|
||||||
|
-DXML_STATIC
|
||||||
|
-D_CRT_SECURE_NO_DEPRECATE
|
||||||
|
-D_DEBUG
|
||||||
|
)
|
||||||
|
|
||||||
|
include_directories( ${musikCube_SOURCE_DIR}/src/win32cpp )
|
||||||
|
|
||||||
|
if (WIN32)
|
||||||
|
#Just until I can figure out how to get rid of the last linker errors when exporting dll functions
|
||||||
|
add_library( win32cpp STATIC ${WIN32CPP_SOURCES} ${WIN32CPP_HEADERS})
|
||||||
|
else (WIN32)
|
||||||
|
add_library( win32cpp SHARED ${WIN32CPP_SOURCES} ${WIN32CPP_HEADERS})
|
||||||
|
endif (WIN32)
|
||||||
|
#target_link_libraries( win32cpp comctl32 )
|
||||||
|
|
||||||
|
|
@ -43,6 +43,7 @@
|
|||||||
#include <win32cpp/Win32Config.hpp>
|
#include <win32cpp/Win32Config.hpp>
|
||||||
#include <win32cpp/Panel.hpp>
|
#include <win32cpp/Panel.hpp>
|
||||||
#include <win32cpp/WindowPadding.hpp>
|
#include <win32cpp/WindowPadding.hpp>
|
||||||
|
#include <win32cpp/Application.hpp>
|
||||||
|
|
||||||
namespace win32cpp {
|
namespace win32cpp {
|
||||||
|
|
||||||
|
@ -39,6 +39,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <win32cpp/Win32Config.hpp>
|
#include <win32cpp/Win32Config.hpp>
|
||||||
|
#include <win32cpp/Types.hpp>
|
||||||
|
#include <win32cpp/Exception.hpp>
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
@ -43,6 +43,7 @@
|
|||||||
#include <win32cpp/Win32Config.hpp>
|
#include <win32cpp/Win32Config.hpp>
|
||||||
#include <win32cpp/Panel.hpp>
|
#include <win32cpp/Panel.hpp>
|
||||||
#include <win32cpp/ILayout.hpp>
|
#include <win32cpp/ILayout.hpp>
|
||||||
|
#include <win32cpp/Application.hpp>
|
||||||
|
|
||||||
namespace win32cpp {
|
namespace win32cpp {
|
||||||
|
|
||||||
|
@ -40,6 +40,7 @@
|
|||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <win32cpp/Menu.hpp>
|
#include <win32cpp/Menu.hpp>
|
||||||
|
#include <win32cpp/Window.hpp>
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
@ -40,6 +40,7 @@
|
|||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <win32cpp/Application.hpp>
|
||||||
#include <win32cpp/Win32Config.hpp>
|
#include <win32cpp/Win32Config.hpp>
|
||||||
#include <win32cpp/Panel.hpp>
|
#include <win32cpp/Panel.hpp>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user