mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 01:59:14 +03:00
837b476283
This is not gonna work right until we also build IPCCompiler.
33 lines
1.1 KiB
CMake
33 lines
1.1 KiB
CMake
cmake_minimum_required (VERSION 3.0)
|
|
project (Lagom)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2 -Wall -Wextra -Werror -std=c++17 -fPIC -g")
|
|
|
|
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wconsumed")
|
|
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-expansion-to-defined")
|
|
endif()
|
|
|
|
file(GLOB AK_SOURCES "../AK/*.cpp")
|
|
file(GLOB LIBCORE_SOURCES "../Libraries/LibCore/*.cpp")
|
|
file(GLOB LIBIPC_SOURCES "../Libraries/LibIPC/*.cpp")
|
|
|
|
set(SOURCES ${AK_SOURCES} ${LIBCORE_SOURCES} ${LIBIPC_SOURCES})
|
|
|
|
include_directories (../)
|
|
include_directories (../Libraries/)
|
|
add_library(lagom ${SOURCES})
|
|
|
|
add_executable(TestApp TestApp.cpp)
|
|
target_link_libraries(TestApp lagom)
|
|
target_link_libraries(TestApp stdc++)
|
|
|
|
#add_executable(SimpleIPCClient SimpleIPCClient.cpp)
|
|
#target_link_libraries(SimpleIPCClient lagom)
|
|
#target_link_libraries(SimpleIPCClient stdc++)
|
|
|
|
#add_executable(SimpleIPCServer SimpleIPCServer.cpp)
|
|
#target_link_libraries(SimpleIPCServer lagom)
|
|
#target_link_libraries(SimpleIPCServer stdc++)
|