26 # Configure for SDL |
26 # Configure for SDL |
27 find_package(SDL REQUIRED) |
27 find_package(SDL REQUIRED) |
28 find_package(SDL_mixer REQUIRED) |
28 find_package(SDL_mixer REQUIRED) |
29 |
29 |
30 include_directories(.) |
30 include_directories(.) |
|
31 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/model) |
31 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/net) |
32 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/net) |
32 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui) |
33 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui) |
33 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui/dialog) |
34 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui/dialog) |
34 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui/page) |
35 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui/page) |
35 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui/model) |
|
36 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui/widget) |
36 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ui/widget) |
37 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/util) |
37 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/util) |
38 include_directories(${SDL_INCLUDE_DIR}) |
38 include_directories(${SDL_INCLUDE_DIR}) |
39 include_directories(${SDLMIXER_INCLUDE_DIR}) |
39 include_directories(${SDLMIXER_INCLUDE_DIR}) |
40 include_directories(${CMAKE_SOURCE_DIR}/misc/quazip) |
40 include_directories(${CMAKE_SOURCE_DIR}/misc/quazip) |
62 endif() |
62 endif() |
63 |
63 |
64 |
64 |
65 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/hwconsts.cpp.in ${CMAKE_CURRENT_BINARY_DIR}/hwconsts.cpp) |
65 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/hwconsts.cpp.in ${CMAKE_CURRENT_BINARY_DIR}/hwconsts.cpp) |
66 |
66 |
67 file(GLOB NetCpp ${CMAKE_CURRENT_SOURCE_DIR} net/*.cpp) |
67 file(GLOB NetCpp net/*.cpp) |
68 file(GLOB_RECURSE UIcpp ${CMAKE_CURRENT_SOURCE_DIR} ui/*.cpp) |
68 file(GLOB ModelCpp model/*.cpp) |
69 file(GLOB UtilCpp ${CMAKE_CURRENT_SOURCE_DIR} util/*.cpp) |
69 file(GLOB_RECURSE UIcpp ui/*.cpp) |
|
70 file(GLOB UtilCpp util/*.cpp) |
70 |
71 |
71 set(hwfr_src |
72 set(hwfr_src |
|
73 ${ModelCpp} |
72 ${NetCpp} |
74 ${NetCpp} |
73 ${UIcpp} |
75 ${UIcpp} |
74 ${UtilCpp} |
76 ${UtilCpp} |
75 AbstractPage.cpp |
77 AbstractPage.cpp |
76 achievements.cpp |
78 achievements.cpp |
102 set(hwfr_src ${hwfr_src} ${CMAKE_CURRENT_BINARY_DIR}/hedgewars_rc.o) |
104 set(hwfr_src ${hwfr_src} ${CMAKE_CURRENT_BINARY_DIR}/hedgewars_rc.o) |
103 else(MINGW) |
105 else(MINGW) |
104 set(hwfr_src ${hwfr_src} hedgewars.rc) |
106 set(hwfr_src ${hwfr_src} hedgewars.rc) |
105 endif(MINGW) |
107 endif(MINGW) |
106 |
108 |
107 file(GLOB NetHdr ${CMAKE_CURRENT_SOURCE_DIR} net/*.h) |
109 file(GLOB ModelHdr model/*.h) |
108 file(GLOB_RECURSE UIhdr ${CMAKE_CURRENT_SOURCE_DIR} ui/*.h) |
110 file(GLOB NetHdr net/*.h) |
109 file(GLOB UtilHdr ${CMAKE_CURRENT_SOURCE_DIR} util/*.h) |
111 file(GLOB_RECURSE UIhdr ui/*.h) |
|
112 file(GLOB UtilHdr util/*.h) |
110 |
113 |
111 |
114 |
112 set(hwfr_moc_hdrs |
115 set(hwfr_moc_hdrs |
|
116 ${ModelHdr} |
113 ${NetHdr} |
117 ${NetHdr} |
114 ${UIhdr} |
118 ${UIhdr} |
115 AbstractPage.h |
119 AbstractPage.h |
116 drawmapscene.h |
120 drawmapscene.h |
117 game.h |
121 game.h |