mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:17:46 +00:00
Build: Switch to CMake :^)
Closes https://github.com/SerenityOS/serenity/issues/2080
This commit is contained in:
parent
49727ffee4
commit
450a2a0f9c
236 changed files with 1774 additions and 2337 deletions
7
Demos/CMakeLists.txt
Normal file
7
Demos/CMakeLists.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
add_subdirectory(Cube)
|
||||
add_subdirectory(DynamicLink)
|
||||
add_subdirectory(Fire)
|
||||
add_subdirectory(HelloWorld)
|
||||
add_subdirectory(Mouse)
|
||||
add_subdirectory(Screensaver)
|
||||
add_subdirectory(WidgetGallery)
|
6
Demos/Cube/CMakeLists.txt
Normal file
6
Demos/Cube/CMakeLists.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
set(SOURCES
|
||||
Cube.cpp
|
||||
)
|
||||
|
||||
serenity_bin(Cube)
|
||||
target_link_libraries(Cube LibGUI)
|
|
@ -1,8 +0,0 @@
|
|||
OBJS = \
|
||||
Cube.o
|
||||
|
||||
PROGRAM = Cube
|
||||
|
||||
LIB_DEPS = GUI IPC Gfx Core
|
||||
|
||||
include ../../Makefile.common
|
2
Demos/DynamicLink/CMakeLists.txt
Normal file
2
Demos/DynamicLink/CMakeLists.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
add_subdirectory(LinkDemo)
|
||||
add_subdirectory(LinkLib)
|
6
Demos/DynamicLink/LinkDemo/CMakeLists.txt
Normal file
6
Demos/DynamicLink/LinkDemo/CMakeLists.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
set(SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
||||
serenity_bin(LinkDemo)
|
||||
target_link_libraries(LinkDemo LibC)
|
|
@ -1,8 +0,0 @@
|
|||
OBJS = \
|
||||
main.o
|
||||
|
||||
PROGRAM = LinkDemo
|
||||
|
||||
SUBPROJECT_CXXFLAGS = -fPIC
|
||||
|
||||
include ../../../Makefile.common
|
7
Demos/DynamicLink/LinkLib/CMakeLists.txt
Normal file
7
Demos/DynamicLink/LinkLib/CMakeLists.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
set(SOURCES
|
||||
DynamicLib.cpp
|
||||
)
|
||||
|
||||
add_library(DynamicLib SHARED ${SOURCES})
|
||||
target_link_libraries(DynamicLib LibC)
|
||||
install(TARGETS DynamicLib DESTINATION usr/lib)
|
|
@ -1,15 +0,0 @@
|
|||
include ../../../Makefile.common
|
||||
|
||||
DYNLIBRARY = libDynamicLib.so
|
||||
|
||||
EXTRA_CLEAN = *.o *.so
|
||||
|
||||
all: $(DYNLIBRARY)
|
||||
|
||||
DynamicLib.o: DynamicLib.cpp
|
||||
@echo "$(notdir $(CURDIR)): C++ $@"
|
||||
$(QUIET) $(CXX) -DDEBUG -fPIC -isystem../../../ -o $@ -c $<
|
||||
|
||||
$(DYNLIBRARY): DynamicLib.o
|
||||
@echo "$(notdir $(CURDIR)): DYLIB $@"
|
||||
$(QUIET) $(CXX) -shared -o $(DYNLIBRARY) $<
|
|
@ -1,3 +0,0 @@
|
|||
SUBDIRS := $(wildcard */.)
|
||||
|
||||
include ../../Makefile.subdir
|
6
Demos/Fire/CMakeLists.txt
Normal file
6
Demos/Fire/CMakeLists.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
set(SOURCES
|
||||
Fire.cpp
|
||||
)
|
||||
|
||||
serenity_bin(Fire)
|
||||
target_link_libraries(Fire LibGUI LibCore LibGfx)
|
|
@ -1,8 +0,0 @@
|
|||
OBJS = \
|
||||
Fire.o
|
||||
|
||||
PROGRAM = Fire
|
||||
|
||||
LIB_DEPS = GUI IPC Gfx Core
|
||||
|
||||
include ../../Makefile.common
|
6
Demos/HelloWorld/CMakeLists.txt
Normal file
6
Demos/HelloWorld/CMakeLists.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
set(SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
||||
serenity_bin(HelloWorld)
|
||||
target_link_libraries(HelloWorld LibGUI)
|
|
@ -1,8 +0,0 @@
|
|||
OBJS = \
|
||||
main.o
|
||||
|
||||
PROGRAM = HelloWorld
|
||||
|
||||
LIB_DEPS = GUI IPC Gfx Core
|
||||
|
||||
include ../../Makefile.common
|
|
@ -1,3 +0,0 @@
|
|||
SUBDIRS := $(patsubst %/Makefile,%/,$(wildcard */Makefile))
|
||||
|
||||
include ../Makefile.subdir
|
6
Demos/Mouse/CMakeLists.txt
Normal file
6
Demos/Mouse/CMakeLists.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
set(SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
||||
serenity_bin(Mouse)
|
||||
target_link_libraries(Mouse LibGUI LibGfx)
|
|
@ -1,8 +0,0 @@
|
|||
OBJS = \
|
||||
main.o
|
||||
|
||||
PROGRAM = Mouse
|
||||
|
||||
LIB_DEPS = GUI IPC Gfx Core
|
||||
|
||||
include ../../Makefile.common
|
6
Demos/Screensaver/CMakeLists.txt
Normal file
6
Demos/Screensaver/CMakeLists.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
set(SOURCES
|
||||
Screensaver.cpp
|
||||
)
|
||||
|
||||
serenity_bin(Screensaver)
|
||||
target_link_libraries(Screensaver LibGUI LibCore LibGfx)
|
|
@ -1,8 +0,0 @@
|
|||
OBJS = \
|
||||
Screensaver.o
|
||||
|
||||
PROGRAM = Screensaver
|
||||
|
||||
LIB_DEPS = GUI IPC Gfx Core
|
||||
|
||||
include ../../Makefile.common
|
6
Demos/WidgetGallery/CMakeLists.txt
Normal file
6
Demos/WidgetGallery/CMakeLists.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
set(SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
||||
serenity_bin(WidgetGallery)
|
||||
target_link_libraries(WidgetGallery LibGUI)
|
|
@ -1,8 +0,0 @@
|
|||
OBJS = \
|
||||
main.o
|
||||
|
||||
PROGRAM = WidgetGallery
|
||||
|
||||
LIB_DEPS = GUI IPC Gfx Core
|
||||
|
||||
include ../../Makefile.common
|
Loading…
Add table
Add a link
Reference in a new issue