mirror of
https://github.com/ksherlock/mpw.git
synced 2024-12-01 13:52:22 +00:00
32 lines
560 B
CMake
32 lines
560 B
CMake
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
set(CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++ -Wall -Wno-deprecated-declarations -g")
|
|
|
|
add_definitions(-I ${CMAKE_SOURCE_DIR}/)
|
|
|
|
set(TOOLBOX_SRC
|
|
toolbox.cpp
|
|
rm.cpp
|
|
mm.cpp
|
|
os.cpp
|
|
os_internal.cpp
|
|
os_hfs_dispatch.cpp
|
|
os_highlevel.cpp
|
|
os_alias.cpp
|
|
os_fileinfo.cpp
|
|
qd.cpp
|
|
sane.cpp
|
|
saneparser.cpp
|
|
utility.cpp
|
|
)
|
|
|
|
|
|
|
|
add_custom_command(
|
|
OUTPUT saneparser.cpp
|
|
COMMAND ragel -p -G2 -o saneparser.cpp "${CMAKE_CURRENT_SOURCE_DIR}/saneparser.rl"
|
|
MAIN_DEPENDENCY saneparser.rl
|
|
)
|
|
|
|
|
|
add_library(TOOLBOX_LIB ${TOOLBOX_SRC}) |