-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Win32cpp and musikServer now included in CMake and compile and run :D
- Loading branch information
urioxis
committed
Feb 25, 2011
1 parent
c55a1fc
commit 159f0c9
Showing
8 changed files
with
111 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters