-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
49 lines (41 loc) · 1.29 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
cmake_minimum_required(VERSION 3.0)
project(Spotless)
set(REACTION_SOURCES
ReAction/Listbrowser.cpp
ReAction/MainWindow.cpp
ReAction/Requester.cpp
ReAction/Speedbar.cpp
ReAction/Progress.cpp
ReAction/Layout.cpp
ReAction/Widget.cpp
ReAction/Screen.cpp
ReAction/Button.cpp
ReAction/Panel.cpp
ReAction/Menubar.cpp
ReAction/String.cpp
ReAction/Checkbox.cpp
ReAction/Config.cpp
)
set(SIMPLEDEBUG_SOURCES
SimpleDebug/Binary.cpp
SimpleDebug/Breaks.cpp
SimpleDebug/Handle.cpp
SimpleDebug/LowLevel.cpp
SimpleDebug/Pipe.cpp
SimpleDebug/Process.cpp
SimpleDebug/Stacktracer.cpp
SimpleDebug/Strings.cpp
SimpleDebug/Symbols.cpp
SimpleDebug/TextFile.cpp
SimpleDebug/Tracer.cpp
)
set(SPOTLESS_SOURCES main.cpp version.c Spotless/Spotless.cpp Spotless/Code.cpp)
set(SOURCES ${SPOTLESS_SOURCES} ${REACTION_SOURCES} ${SIMPLEDEBUG_SOURCES})
add_executable(Spotless ${SOURCES})
target_link_libraries(Spotless -lunix -lauto)
add_executable(ReActionTests ReAction/Tests/test.cpp ${REACTION_SOURCES})
target_link_libraries(ReActionTests -lauto)
add_executable(ConfigTest ReAction/Tests/config_test.cpp ReAction/Config.cpp)
target_link_libraries(ConfigTest -lauto)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -mcrt=newlib -athread=native -gstabs")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcrt=newlib -gstabs -mstrict-align -O0")