2013-02-07 04:44:12 +00:00
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
|
|
|
add_definitions(-I ${CMAKE_SOURCE_DIR}/)
|
|
|
|
|
|
|
|
set(TOOLBOX_SRC
|
2013-02-08 00:21:47 +00:00
|
|
|
toolbox.cpp
|
2013-02-08 03:12:30 +00:00
|
|
|
mm.cpp
|
2013-08-16 03:38:41 +00:00
|
|
|
loader.cpp
|
2016-08-02 17:46:18 +00:00
|
|
|
# rm.cpp
|
|
|
|
rm-new.cpp
|
2013-02-12 22:32:31 +00:00
|
|
|
os.cpp
|
2013-05-18 00:14:30 +00:00
|
|
|
os_alias.cpp
|
2013-05-23 00:37:57 +00:00
|
|
|
os_fileinfo.cpp
|
2014-07-24 17:40:57 +00:00
|
|
|
os_gestalt.cpp
|
2015-01-23 15:26:40 +00:00
|
|
|
os_hfs_dispatch.cpp
|
|
|
|
os_highlevel.cpp
|
|
|
|
os_hwpriv.cpp
|
|
|
|
os_internal.cpp
|
2015-01-14 22:03:03 +00:00
|
|
|
os_volume.cpp
|
2013-02-15 04:09:05 +00:00
|
|
|
qd.cpp
|
2013-02-21 04:28:13 +00:00
|
|
|
sane.cpp
|
2013-07-08 03:41:28 +00:00
|
|
|
saneparser.cpp
|
2015-02-02 22:02:57 +00:00
|
|
|
packages.cpp
|
2013-08-03 04:33:24 +00:00
|
|
|
pathnames.cpp
|
2015-02-03 01:16:30 +00:00
|
|
|
process.cpp
|
2013-03-27 03:29:08 +00:00
|
|
|
utility.cpp
|
2014-12-16 18:07:37 +00:00
|
|
|
fs_spec.cpp
|
2014-12-22 14:53:38 +00:00
|
|
|
realpath.c
|
2015-02-13 21:11:55 +00:00
|
|
|
dispatch.cpp
|
2015-02-23 16:41:07 +00:00
|
|
|
fpinfo.cpp
|
2016-02-08 04:16:04 +00:00
|
|
|
debug.cpp
|
2013-02-07 04:44:12 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
2013-07-08 03:41:28 +00:00
|
|
|
add_custom_command(
|
|
|
|
OUTPUT saneparser.cpp
|
|
|
|
COMMAND ragel -p -G2 -o saneparser.cpp "${CMAKE_CURRENT_SOURCE_DIR}/saneparser.rl"
|
|
|
|
MAIN_DEPENDENCY saneparser.rl
|
|
|
|
)
|
|
|
|
|
2013-08-03 04:33:24 +00:00
|
|
|
add_custom_command(
|
|
|
|
OUTPUT pathnames.cpp
|
|
|
|
COMMAND ragel -p -G2 -o pathnames.cpp "${CMAKE_CURRENT_SOURCE_DIR}/pathnames.rl"
|
|
|
|
MAIN_DEPENDENCY pathnames.rl
|
|
|
|
)
|
|
|
|
|
2013-07-15 01:05:01 +00:00
|
|
|
set_source_files_properties(
|
2013-08-03 04:33:24 +00:00
|
|
|
saneparser.cpp pathnames.cpp
|
2013-07-15 01:05:01 +00:00
|
|
|
PROPERTIES
|
|
|
|
COMPILE_FLAGS
|
|
|
|
"${CMAKE_CXX_FLAGS} -Wno-unused-variable"
|
|
|
|
)
|
2013-07-08 03:41:28 +00:00
|
|
|
|
2016-08-02 21:12:15 +00:00
|
|
|
add_library(TOOLBOX_LIB ${TOOLBOX_SRC})
|