mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 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/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) $<
|
Loading…
Add table
Add a link
Reference in a new issue