Skip to content

Commit 49bf9fd

Browse files
committed
move source files to subdirectory
1 parent 44e056e commit 49bf9fd

18 files changed

Lines changed: 37 additions & 37 deletions

CMakeLists.txt

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ if (WIN32 OR APPLE)
66
message(FATAL_ERROR "MemSC is only supported on Linux currently")
77
endif()
88

9-
set(CMAKE_INCLUDE_CURRENT_DIR ON)
109
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
1110

1211
set(CMAKE_AUTOUIC ON)
@@ -18,38 +17,4 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
1817

1918
find_package(Qt6 COMPONENTS Widgets REQUIRED)
2019
find_package(Threads REQUIRED)
21-
22-
add_executable(memsc
23-
main.cpp
24-
mainwindow.cpp
25-
mainwindow.ui
26-
ProcessMemory.cpp
27-
maps.cpp
28-
ui/MapsDialog.cpp
29-
ui/PidDialog.cpp
30-
ui/Settings.cpp
31-
)
32-
33-
target_precompile_headers(memsc PRIVATE
34-
ui/MapsDialog.h
35-
ui/PidDialog.h
36-
ui/Settings.h
37-
mainwindow.h
38-
)
39-
target_compile_options(memsc PRIVATE
40-
-Wall
41-
-Wconversion
42-
-march=native
43-
-falign-functions=64
44-
-fno-omit-frame-pointer
45-
)
46-
47-
target_link_options(memsc PRIVATE
48-
$<$<CONFIG:Debug>:-fsanitize=address,undefined>
49-
$<$<CONFIG:Release>:-flto=auto -funroll-loops>
50-
)
51-
52-
target_link_libraries(memsc PRIVATE Qt6::Widgets Qt6::Core Qt6::Gui
53-
Threads::Threads)
54-
55-
install(TARGETS memsc RUNTIME DESTINATION bin)
20+
add_subdirectory(src)

src/CMakeLists.txt

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
set(CMAKE_INCLUDE_CURRENT_DIR ON)
2+
add_executable(memsc
3+
main.cpp
4+
mainwindow.cpp
5+
mainwindow.ui
6+
ProcessMemory.cpp
7+
maps.cpp
8+
ui/MapsDialog.cpp
9+
ui/PidDialog.cpp
10+
ui/Settings.cpp
11+
)
12+
13+
target_precompile_headers(memsc PRIVATE
14+
ui/MapsDialog.h
15+
ui/PidDialog.h
16+
ui/Settings.h
17+
mainwindow.h
18+
)
19+
target_compile_options(memsc PRIVATE
20+
-Wall
21+
-Wconversion
22+
-march=native
23+
-falign-functions=64
24+
-fno-omit-frame-pointer
25+
)
26+
27+
target_link_options(memsc PRIVATE
28+
$<$<CONFIG:Debug>:-fsanitize=address,undefined>
29+
$<$<CONFIG:Release>:-flto=auto -funroll-loops>
30+
)
31+
32+
target_link_libraries(memsc PRIVATE Qt6::Widgets Qt6::Core Qt6::Gui
33+
Threads::Threads)
34+
35+
install(TARGETS memsc RUNTIME DESTINATION bin)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)